]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/sockunix.cpp
implement SetTimes() for directories too under MSW (#10250)
[wxWidgets.git] / src / unix / sockunix.cpp
index c50debc3266e2c9971769d6effe5b89378137898..51a158cab657bc0b18d0de9ab154d928fcb98c1f 100644 (file)
@@ -107,6 +107,9 @@ wxSocketError wxSocketImplUnix::GetLastError() const
 void wxSocketImplUnix::DoEnableEvents(int flags, bool enable)
 {
     wxSocketManager * const manager = wxSocketManager::Get();
+    if (!manager)
+        return;
+
     if ( enable )
     {
         if ( flags & wxSOCKET_INPUT_FLAG )