]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.cpp
wxColour source cleaning. Corrections to 'const unsigned char' within wxColour docs.
[wxWidgets.git] / src / unix / gsocket.cpp
index 550b3d51b3496ca62ffe05f5c5482425c0b4e89d..874098d3b648c7a006486039d1a17cf4dd0336d7 100644 (file)
@@ -328,6 +328,9 @@ void GSocket::Shutdown()
 
   assert(this);
 
+  /* Don't allow events to fire after socket has been closed */
+  gs_gui_functions->Disable_Events(this);
+
   /* If socket has been created, shutdown it */
   if (m_fd != INVALID_SOCKET)
   {