diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/network.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 2d48fc8c..6f852529 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -217,6 +217,7 @@ void flush() if (ret <= 0) { logger->log("Error in SDLNet_TCP_Recv(): %s", SDLNet_GetError()); + errorMessage = "You got disconnected from server"; state = ERROR_STATE; return; } @@ -232,6 +233,7 @@ void flush() if (ret < (int)out_size) { logger->log("Error in SDLNet_TCP_Send(): %s", SDLNet_GetError()); + errorMessage = "You got disconnected from server"; state = ERROR_STATE; return; } |