X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4854380c1b7c0d72fc78ad47220f42fb05d7b17..cde76cf2a96d43f62ecb7e18c51f73e871a6d4bd:/src/unix/gsocket.cpp?ds=inline diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 659f709be5..e2423cdd2c 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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 */