fix: all null pointers in disconnect listeners (there was so much)
i didn't even know how the bot even functioned for the whole 5 months without me noticing
This commit is contained in:
@@ -387,7 +387,11 @@ public class Bot extends SessionAdapter {
|
||||
}
|
||||
|
||||
for (final SessionListener listener : listeners) {
|
||||
listener.disconnected(disconnectedEvent);
|
||||
try {
|
||||
listener.disconnected(disconnectedEvent);
|
||||
} catch (final Exception e) {
|
||||
logger.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user