Server now closes correctly when host is leaving
This commit is contained in:
@@ -50,9 +50,8 @@ public void exit() {
|
||||
*/
|
||||
@Override
|
||||
public void selectLeave() {
|
||||
parent.setState(parent.getStartDialog());
|
||||
logic.addNotification(new StartDialogNotification());
|
||||
logic.send(new LeaveGameMessage());
|
||||
logic.addNotification(new StartDialogNotification());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user