projects
/
xudocci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notify main loop when we leave a channel.
[xudocci.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
xdcc
/
core
/
Core.java
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
(file)
--- 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());
}
channelsBeingJoined.remove(channel.get());
+ synchronized (syncObject) {
+ syncObject.notifyAll();
+ }
/* remove all bots for this channel, we might have been kicked. */
Collection<Bot> botsToRemove = networkBots.row(network.get())
/* remove all bots for this channel, we might have been kicked. */
Collection<Bot> botsToRemove = networkBots.row(network.get())
@@
-696,6
+699,9
@@
public class Core extends AbstractExecutionThreadService {
} else {
channels.remove(channel.get());
}
} 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())));
}
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());
}
} else {
joinedChannels.remove(channel.get());
}
+ synchronized (syncObject) {
+ syncObject.notifyAll();
+ }
eventBus.post(new GenericMessage(format(
"Kicked from %s by %s: %s",
kickedFromChannel.channel(),
eventBus.post(new GenericMessage(format(
"Kicked from %s by %s: %s",
kickedFromChannel.channel(),