this.state = state;
}
if (getState() != IOSServerManager.State.running) {
stopPolling();
addNewEvent(new RemoteNotReachableException("Not not running"));
}
if (getState() == IOSServerManager.State.stopped) {
addNewEvent(new RemoteUnregisterException("Unregistering the node."));
}