Browse Source

Reset channels before trying to disconnect.

May fix issue 2401.
tags/0.6.3m1rc1
Chris Smith 15 years ago
parent
commit
d782dce504
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/com/dmdirc/Server.java

+ 4
- 4
src/com/dmdirc/Server.java View File

@@ -348,6 +348,8 @@ public class Server extends WritableFrameContainer implements Serializable {
348 348
                 break;
349 349
             }
350 350
 
351
+            clearChannels();
352
+
351 353
             if (parser == null) {
352 354
                 myState.transition(ServerState.DISCONNECTED);
353 355
             } else {
@@ -363,8 +365,6 @@ public class Server extends WritableFrameContainer implements Serializable {
363 365
             if (getConfigManager().getOptionBool(DOMAIN_GENERAL,
364 366
                     "closechannelsonquit")) {
365 367
                 closeChannels();
366
-            } else {
367
-                clearChannels();
368 368
             }
369 369
 
370 370
             if (getConfigManager().getOptionBool(DOMAIN_GENERAL,
@@ -1200,6 +1200,8 @@ public class Server extends WritableFrameContainer implements Serializable {
1200 1200
                 myState.transition(ServerState.TRANSIENTLY_DISCONNECTED);
1201 1201
             }
1202 1202
 
1203
+            clearChannels();
1204
+
1203 1205
             parser = null;
1204 1206
 
1205 1207
             updateIcon();
@@ -1207,8 +1209,6 @@ public class Server extends WritableFrameContainer implements Serializable {
1207 1209
             if (getConfigManager().getOptionBool(DOMAIN_GENERAL,
1208 1210
                     "closechannelsondisconnect")) {
1209 1211
                 closeChannels();
1210
-            } else {
1211
-                clearChannels();
1212 1212
             }
1213 1213
 
1214 1214
             if (getConfigManager().getOptionBool(DOMAIN_GENERAL,

Loading…
Cancel
Save