Show a more specific disconnect-message in case the host closed the server. Refs #3264, #3570.

This was SVN commit r17710.
This commit is contained in:
elexis
2016-01-25 12:56:30 +00:00
parent 3ec3f0b160
commit ab16ddb256
5 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2015 Wildfire Games.
/* Copyright (C) 2016 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -39,7 +39,7 @@ CNetClientSession::~CNetClientSession()
if (m_Host && m_Server)
{
// Disconnect immediately (we can't wait for acks)
enet_peer_disconnect_now(m_Server, NDR_UNEXPECTED_SHUTDOWN);
enet_peer_disconnect_now(m_Server, NDR_SERVER_SHUTDOWN);
enet_host_destroy(m_Host);
m_Host = NULL;