public void StopClient() { try { if (SLClient == null) { return; } SLClient.Shutdown(SocketShutdown.Both); SLClient.Close(); SLClient = null; } catch { } }
public void StopClient() { try { if (SLClient == null) { return; } SLClient.Shutdown(SocketShutdown.Both); SLClient.Close(); SLClient = null; } catch (Exception ex) { ex.ToOutput(); } }
public void Stop() { TimrMain.Enabled = false; try { if (SLClient == null) { return; } SLClient.Shutdown(SocketShutdown.Both); SLClient.Close(); } catch { } SLClient = null; }