public static void Stop() { try { if (client != null) { client.Close(); } client = null; } catch { } try { if (tcpclient != null) { tcpclient.Close(); } tcpclient = null; } catch { } try { GStreamer.Stop(); } catch { } }
public static void Stop() { try { if (client != null) { client.Close(); } client = null; } catch (Exception ex) { log.Error(ex); } try { if (tcpclient != null) { tcpclient.Close(); } tcpclient = null; } catch (Exception ex) { log.Error(ex); } try { GStreamer.Stop(gst); } catch (Exception ex) { log.Error(ex); } }