|
@@ -270,7 +270,9 @@ public class Channel extends FrameContainer implements GroupChat {
|
270
|
270
|
|
271
|
271
|
setIcon("channel-inactive");
|
272
|
272
|
|
273
|
|
- getEventBus().publishAsync(new NickListClientsChangedEvent(this,
|
|
273
|
+ // Needs to be published synchronously so that nicklists are cleared before the parser
|
|
274
|
+ // is disconnected (which happens synchronously after this method returns).
|
|
275
|
+ getEventBus().publish(new NickListClientsChangedEvent(this,
|
274
|
276
|
Collections.<GroupChatUser>emptyList()));
|
275
|
277
|
}
|
276
|
278
|
|