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