]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.cpp
Remove const bool
[wxWidgets.git] / src / unix / gsocket.cpp
index 659f709be5df20151d0fda6af08d6c4ca57a8df2..e2423cdd2c96d062e9ede15a966d11b604e05016 100644 (file)
@@ -1751,6 +1751,12 @@ void GSocket::Detected_Read()
     {
       CALL_CALLBACK(this, GSOCK_CONNECTION);
     }
+    else if (num == 0)
+    {
+      /* graceful shutdown */
+      CALL_CALLBACK(this, GSOCK_LOST);
+      Shutdown();
+    }
     else
     {
       /* Do not throw a lost event in cases where the socket isn't really lost */