コード例 #1
0
ファイル: MJpegWrapper.cs プロジェクト: mezz64/cameraproxy
 public void Stop()
 {
     if (httpServer != null)
     {
         httpServer.Stop();
         httpServer.Join(1000);
     }
     // webSocketServer does not support closing/stopping
     webSocketServer = null;
 }
コード例 #2
0
        public void Stop()
        {
            Try.Catch(() => { thrCertificateMaintainer?.Abort(); });

            if (httpServer != null)
            {
                httpServer.Stop();
                httpServer.Join(1000);
            }
            // webSocketServer does not support closing/stopping
            webSocketServer = null;
        }