Fix disabling plugins whose stop() errors

This commit is contained in:
V 2023-06-13 02:29:15 +02:00
parent ab3e993274
commit 42d8211871
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 6 additions and 4 deletions

View file

@ -104,6 +104,6 @@ export default definePlugin({
stop() {
FluxDispatcher.dispatch({ type: "LOCAL_ACTIVITY_UPDATE", activity: null }); // clear status
ws.close(); // close WebSocket
ws?.close(); // close WebSocket
}
});