line
This commit is contained in:
@@ -58,12 +58,10 @@ namespace Client
|
|||||||
|
|
||||||
private void becomeHostForLobby(int id)
|
private void becomeHostForLobby(int id)
|
||||||
{
|
{
|
||||||
|
|
||||||
Debug.WriteLine($"got host succes with data {id} ");
|
Debug.WriteLine($"got host succes with data {id} ");
|
||||||
wantToBeHost = true;
|
wantToBeHost = true;
|
||||||
wantToBeHostId = id;
|
wantToBeHostId = id;
|
||||||
client.OnLobbiesReceivedAndWaitingForHost = hostLobbiesReceived;
|
client.OnLobbiesReceivedAndWaitingForHost = hostLobbiesReceived;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void hostLobbiesReceived()
|
private void hostLobbiesReceived()
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ namespace Server.Models
|
|||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
Debug.WriteLine("[SERVERCLIENT] Client disconnected! exception was " + e.Message);
|
||||||
tcpClient.Close();
|
tcpClient.Close();
|
||||||
ServerCommunication.INSTANCE.ServerClientDisconnect(this);
|
ServerCommunication.INSTANCE.ServerClientDisconnect(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user