X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2804f77d88eb478f85a281b19d87e38cd96e0d0c..747d7d7c159a57015d7aa9d844f834b78f613272:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index d424f1dad1..8bcb88fb0a 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -872,8 +872,10 @@ void GSocket::Notify(bool flag) { if (flag == m_use_events) return; +#if wxUSE_THREADS // it is not safe to attach or detach i/o descriptor in child thread wxASSERT_MSG( wxThread::IsMain(), "should be called in main thread only" ); +#endif m_use_events = flag; EnableEvents(flag); }