Mercurial > hg > openttd
changeset 12181:3b9a928aa66c draft
(svn r16592) -Fix [FS#2880]: 'connection lost' was also shown when the client was 'leaving'.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 18 Jun 2009 15:05:45 +0000 |
parents | a8461c552ea5 |
children | c16b6986b69d |
files | src/network/network_server.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -989,6 +989,12 @@ } } + /* First tell we already closed the connection... + * ... then start the generic code to close the actual connection. + * This to make sure the 'connection lost' message is only shown + * when the connection got really lost and not when the client + * told us it was going to disconnect. */ + cs->NetworkSocketHandler::CloseConnection(); cs->CloseConnection(); }