mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
UI fixes after game end
This commit is contained in:
@@ -184,7 +184,7 @@ public final class Server {
|
|||||||
|
|
||||||
gameController = null;
|
gameController = null;
|
||||||
|
|
||||||
//if (!isPolling) return;
|
// if (!isPolling) return;
|
||||||
|
|
||||||
String gameType = extractQuotedValue(response.gameType());
|
String gameType = extractQuotedValue(response.gameType());
|
||||||
if (response.clientId() == clientId) {
|
if (response.clientId() == clientId) {
|
||||||
@@ -235,8 +235,9 @@ public final class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gameController != null) {
|
if (gameController != null) {
|
||||||
primary.reEnableButton();
|
primary.reEnableButton(); // Re enable subscribe button
|
||||||
gameController.start();
|
gameController.start();
|
||||||
|
isPolling = true; // Fixes server getting stuck
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user