diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 6bac25899d..1d31f58c63 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -133,7 +133,7 @@ bool wxSocketBase::Initialize() on a semaphore (a bad idea in any case) or socket operations will time out. */ - wxASSERT_MSG( wxThread::IsMain(), + wxASSERT_MSG( wxIsMainThread(), wxT("Call wxSocketBase::Initialize() from the main thread first!")); wxAppTraits *traits = wxAppConsole::GetInstance() ?