summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/network')
-rw-r--r--src/jrummikub/control/network/NetworkControl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jrummikub/control/network/NetworkControl.java b/src/jrummikub/control/network/NetworkControl.java
index 4c03923..88f347c 100644
--- a/src/jrummikub/control/network/NetworkControl.java
+++ b/src/jrummikub/control/network/NetworkControl.java
@@ -240,12 +240,19 @@ public class NetworkControl {
if (settingsControl != null) {
settingsControl.abort();
+ settingsControl = null;
}
if (gameOfferControl != null) {
gameOfferControl.abort();
+ gameOfferControl = null;
}
if (gameJoinControl != null) {
gameJoinControl.abort();
+ gameJoinControl = null;
+ }
+ if (gameControl != null) {
+ gameControl.abortGame();
+ gameControl = null;
}
connectionControl.disconnect();