]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
some != NULL checks
[wxWidgets.git] / src / common / socket.cpp
index c02adfc698ceaa5d1585dbaa84c4c9ed48b7e0e6..89ac01b97d58cfafbfeec60345a28a0c99de206e 100644 (file)
@@ -198,7 +198,7 @@ bool wxSocketBase::Destroy()
 bool wxSocketBase::Close()
 {
   // Interrupt pending waits
 bool wxSocketBase::Close()
 {
   // Interrupt pending waits
-  InterruptAllWaits();
+  InterruptWait();
 
   if (m_socket)
   {
 
   if (m_socket)
   {
@@ -653,7 +653,7 @@ bool wxSocketBase::_Wait(long seconds,
     {
       m_connected = FALSE;
       m_establishing = FALSE;
     {
       m_connected = FALSE;
       m_establishing = FALSE;
-      return (flags & GSOCK_LOST_FLAG);
+      return (flags & GSOCK_LOST_FLAG) != 0;
     }
 
     // Wait more?
     }
 
     // Wait more?