mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Fixed NPE error on connection startup freeze;
This commit is contained in:
parent
076a965e02
commit
718bfb0a52
1 changed files with 1 additions and 1 deletions
|
@ -1592,7 +1592,7 @@ public class SessionImpl implements Session {
|
|||
@Override
|
||||
public boolean ping() {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
if (isConnected() && sessionId != null) {
|
||||
long startTime = System.nanoTime();
|
||||
if (!server.ping(sessionId, pingInfo)) {
|
||||
logger.error("Ping failed: " + this.getUserName() + " Session: " + sessionId + " to MAGE server at " + connection.getHost() + ':' + connection.getPort());
|
||||
|
|
Loading…
Add table
Reference in a new issue