X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01c0355483d2f6d1e4dcc03762239007327e5745..b97d1013cf34ee9e844fed490cca849c41bd4f8f:/src/unix/gsocket.cpp?ds=inline diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 1d1b9cec69..5cb9783b71 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -21,7 +21,6 @@ #ifndef __GSOCKET_STANDALONE__ #include "wx/defs.h" #include "wx/private/gsocketiohandler.h" -#include "wx/thread.h" // for wxThread::IsMain() used in assert #endif #if defined(__VISAGECPP__) @@ -872,10 +871,6 @@ 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); }