X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fcore%2FCore.java;h=1038b4fae839b8115315a14eedba8036aa2b7c3e;hb=6595c30709032c5d373e1cebf4b3d6ea0c6fe91d;hp=3b1e639a2cb8dac551672bede3e53c1b73e55f14;hpb=519f934e9c19bbc6ca80617c1322dff4cec94fe8;p=xudocci.git diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 3b1e639..1038b4f 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -636,6 +636,9 @@ public class Core extends AbstractExecutionThreadService { } channelsBeingJoined.remove(channel.get()); + synchronized (syncObject) { + syncObject.notifyAll(); + } /* remove all bots for this channel, we might have been kicked. */ Collection botsToRemove = networkBots.row(network.get()) @@ -696,6 +699,9 @@ public class Core extends AbstractExecutionThreadService { } else { channels.remove(channel.get()); } + synchronized (syncObject) { + syncObject.notifyAll(); + } eventBus.post(new GenericMessage(String.format("Left Channel %s on %s.", channel.get().name(), channel.get().network().name()))); } @@ -728,6 +734,9 @@ public class Core extends AbstractExecutionThreadService { } else { joinedChannels.remove(channel.get()); } + synchronized (syncObject) { + syncObject.notifyAll(); + } eventBus.post(new GenericMessage(format( "Kicked from %s by %s: %s", kickedFromChannel.channel(),