]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/gsockgtk.cpp
Multi-thread fix from Angel [ patch 1281057 ]
[wxWidgets.git] / src / gtk1 / gsockgtk.cpp
index ae8e1a9da5382eb5c3426f66bd26b7daf15c5d85..af5fbe635dcc799fe3b35ec3d57ba8138734015d 100644 (file)
@@ -109,9 +109,10 @@ void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket *socket, GSock
   }
 
   if (m_id[c] != -1)
+  {
     gdk_input_remove(m_id[c]);
-
-  m_id[c] = -1;
+    m_id[c] = -1;
+  }
 }
 
 void GSocketGUIFunctionsTableConcrete::Enable_Events(GSocket *socket)