compilation fix for !wxUSE_THREADS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-12-20 19:42:04 +00:00
parent df405da528
commit 2ada746fb4

View File

@@ -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);
}