do not call disconnect() unless connecting/ed. This prevents trying to connect after closing the tab
This commit is contained in:
@@ -80,7 +80,8 @@ class ChatServerView {
|
||||
}
|
||||
|
||||
def closeTab = {
|
||||
controller.disconnect()
|
||||
if (model.buttonText == "Disconnect")
|
||||
controller.disconnect()
|
||||
int index = parent.indexOfComponent(pane)
|
||||
parent.removeTabAt(index)
|
||||
mvcGroup.destroy()
|
||||
|
Reference in New Issue
Block a user