if the current protocol status is offline and user chooses offline from the status list do nothing

cusax-fix
Yana Stamcheva 20 years ago
parent 5bb8efeaab
commit 035bdf1a3f

@ -150,7 +150,7 @@ public void actionPerformed(ActionEvent e) {
}
setSelectedStatus(status);
}
else {
else if (status.isOnline()){
lastSelectedStatus = status;
loginManager.login(protocolProvider);
}

@ -116,15 +116,18 @@ public void actionPerformed(ActionEvent e)
}
}
else {
try {
mainFrame.getLoginManager()
.setManuallyDisconnected(true);
protocolProvider.unregister();
}
catch (OperationFailedException e1) {
logger.error("Unable to unregister the protocol provider: "
+ protocolProvider
+ " due to the following exception: " + e1);
if(protocolProvider.isRegistered())
{
try {
mainFrame.getLoginManager()
.setManuallyDisconnected(true);
protocolProvider.unregister();
}
catch (OperationFailedException e1) {
logger.error("Unable to unregister the protocol provider: "
+ protocolProvider
+ " due to the following exception: " + e1);
}
}
}
}

Loading…
Cancel
Save