return;
}
- /* get connection. */
- Connection connection = networkConnections.get(bot.network());
- if (connection == null) {
- /* request for unknown network? */
- return;
- }
-
/* stop the DCC receiver. */
if (download.get().dccReceiver() != null) {
download.get().dccReceiver().stop();
downloads.remove(pack.name(), download.get());
}
+ /* get connection. */
+ Connection connection = networkConnections.get(bot.network());
+ if (connection == null) {
+ /* request for unknown network? */
+ return;
+ }
+
/* remove the request from the bot, too. */
try {
connection.sendMessage(bot.name(), String.format("XDCC %s", (download.get().dccReceiver() != null) ? "CANCEL" : "REMOVE"));