From ad1792abbb828c6bacf82fe373de8d2c7c1931f5 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Mon, 30 Sep 2013 17:19:38 +0300 Subject: [PATCH] Closes open chats, like we close the main window when quiting the ui, so we avoid removing ui plugins one by one, while those plugins are unregistered from OSGi. --- src/net/java/sip/communicator/impl/gui/UIServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java index c5915ce4e..a4eec98d1 100644 --- a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java +++ b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java @@ -1200,6 +1200,11 @@ public void beginShutdown() { try { + // close chats, so we do not start removing plugins one by one + // when we start to stop the application + for(ChatPanel cp : chatWindowManager.getAllChats()) + chatWindowManager.closeChat(cp); + if (mainFrame != null) mainFrame.dispose(); }