forked from External/mage
more client server improvements
This commit is contained in:
parent
3311f6a1f3
commit
b676e59001
5 changed files with 33 additions and 49 deletions
|
|
@ -43,6 +43,7 @@ import mage.client.remote.Session;
|
|||
import mage.view.ChatMessage.MessageColor;
|
||||
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
import mage.client.remote.Session.SessionState;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -79,7 +80,7 @@ public class ChatPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
public void disconnect() {
|
||||
if (session != null && session.isConnected())
|
||||
if (session != null && session.getState() == SessionState.CONNECTED)
|
||||
session.leaveChat(chatId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue