summaryrefslogtreecommitdiff
path: root/src/network/core/tcp.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-14 21:48:42 +0000
committerrubidium <rubidium@openttd.org>2010-01-14 21:48:42 +0000
commitf89d6bea0ef8d198027c7bcaed5c457aaa228330 (patch)
treea650f94741f7657fb9fdf56f315319b46b64602b /src/network/core/tcp.h
parent83c8c562bbe006df262bd58d6ab349e3ea3f5349 (diff)
downloadopenttd-f89d6bea0ef8d198027c7bcaed5c457aaa228330.tar.xz
(svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different.
Diffstat (limited to 'src/network/core/tcp.h')
-rw-r--r--src/network/core/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h
index 904db99c4..b24e241f1 100644
--- a/src/network/core/tcp.h
+++ b/src/network/core/tcp.h
@@ -38,7 +38,7 @@ public:
virtual NetworkRecvStatus CloseConnection(bool error = true);
void Send_Packet(Packet *packet);
- bool Send_Packets();
+ bool Send_Packets(bool closing_down = false);
bool IsPacketQueueEmpty();
Packet *Recv_Packet();