mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 02:56:24 +00:00
Workspaces: Shutdown plugins without NPE when loading failed
This commit is contained in:
@ -139,10 +139,10 @@ public class Workspace extends JPanel implements StanzaListener {
|
||||
// Leave the ChatRoom
|
||||
container.leaveChatRoom(chatRoom);
|
||||
}
|
||||
conferences.shutdown();
|
||||
gatewayPlugin.shutdown();
|
||||
bookmarkPlugin.shutdown();
|
||||
broadcastPlugin.shutdown();
|
||||
if (conferences != null) conferences.shutdown();
|
||||
if (gatewayPlugin != null) gatewayPlugin.shutdown();
|
||||
if (bookmarkPlugin != null) bookmarkPlugin.shutdown();
|
||||
if (broadcastPlugin != null) broadcastPlugin.shutdown();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user