diff options
-rw-r--r-- | src/libui_sdl/LAN_Socket.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libui_sdl/LAN_Socket.cpp b/src/libui_sdl/LAN_Socket.cpp index c3ad991..373f539 100644 --- a/src/libui_sdl/LAN_Socket.cpp +++ b/src/libui_sdl/LAN_Socket.cpp @@ -766,9 +766,12 @@ void HandleTCPFrame(u8* data, int len) if (flags & 0x001) // FIN { - // TODO: cleverer termination? - // also timeout etc + // TODO: timeout etc + printf("TCP: socket %d closing\n", sockid); + sock->Status = 0; + closesocket(sock->Backend); + sock->Backend = 0; } } } |