fix NPE
This commit is contained in:
parent
26a24d384e
commit
1abeb51b4f
1 changed files with 2 additions and 1 deletions
|
@ -250,6 +250,7 @@ public class NSClientService extends Service {
|
||||||
connectCounter++;
|
connectCounter++;
|
||||||
String socketId = mSocket != null ? mSocket.id() : "NULL";
|
String socketId = mSocket != null ? mSocket.id() : "NULL";
|
||||||
MainApp.bus().post(new EventNSClientNewLog("NSCLIENT", "connect #" + connectCounter + " event. ID: " + socketId));
|
MainApp.bus().post(new EventNSClientNewLog("NSCLIENT", "connect #" + connectCounter + " event. ID: " + socketId));
|
||||||
|
if (mSocket != null)
|
||||||
sendAuthMessage(new NSAuthAck());
|
sendAuthMessage(new NSAuthAck());
|
||||||
watchdog();
|
watchdog();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue