Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit ed439e7

Browse files
committed
🐛 fix: Only close dispatch manager after everything else has shut down
1 parent da655a8 commit ed439e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mewna/catnip/internal/CatnipImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ public long clientIdAsLong() {
232232
@Override
233233
public void shutdown() {
234234
logAdapter().info("Shutting down!");
235-
dispatchManager().close();
236235
shardManager().shutdown();
237236
extensionManager.shutdown();
237+
dispatchManager().close();
238238
// Will let the keepalive thread halt
239239
latch.countDown();
240240
}

0 commit comments

Comments
 (0)