merge Fix async stuff into master #7

Merged
SemvdH merged 7 commits from fix-async-stuff into master 2020-10-22 15:02:30 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit d3bd1418d1 - Show all commits

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);
}