This commit is contained in:
Milos Kozak 2018-08-12 09:29:41 +02:00
parent 26a24d384e
commit 1abeb51b4f

View file

@ -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();
}
};