This commit is contained in:
Sem van der Hoeven
2020-10-22 13:55:46 +02:00
parent ef255e4828
commit d3bd1418d1
2 changed files with 1 additions and 2 deletions

View File

@@ -58,12 +58,10 @@ namespace Client
private void becomeHostForLobby(int id)
{
Debug.WriteLine($"got host succes with data {id} ");
wantToBeHost = true;
wantToBeHostId = id;
client.OnLobbiesReceivedAndWaitingForHost = hostLobbiesReceived;
}
private void hostLobbiesReceived()

View File

@@ -92,6 +92,7 @@ namespace Server.Models
}
catch (IOException e)
{
Debug.WriteLine("[SERVERCLIENT] Client disconnected! exception was " + e.Message);
tcpClient.Close();
ServerCommunication.INSTANCE.ServerClientDisconnect(this);
}