public void Stop() { try { if (xmppServer != null) { xmppServer.StopListen(); xmppServer.Dispose(); xmppServer = null; } if (host != null) { host.Close(); host = null; } if (cleaner != null) { cleaner.Stop(); } } catch (Exception ex) { log.Error("Error while stopping the service", ex); } }
public void Stop() { if (xmppServer != null) { xmppServer.StopListen(); xmppServer = null; } if (host != null) { host.Close(); host = null; } }