mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
* Client connect - Fixed that reconnect request was also shown if no successful connection was set up before.
This commit is contained in:
parent
7e9accb0fd
commit
2c63d3bff8
6 changed files with 16 additions and 11 deletions
|
|
@ -70,7 +70,7 @@ public class MultiConnectTest {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void disconnected() {
|
||||
public void disconnected(boolean errorCall) {
|
||||
logger.info("disconnected");
|
||||
}
|
||||
|
||||
|
|
@ -106,11 +106,13 @@ public class MultiConnectTest {
|
|||
|
||||
private void connect(final int index) throws Exception {
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
public void uncaughtException(Thread t, Throwable e) {
|
||||
logger.fatal(null, e);
|
||||
}
|
||||
});
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
String username = "player" + index;
|
||||
ClientMock client = new ClientMock(username);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue