Пример #1
0
 public void Stop()
 {
     if (IsRunning)
     {
         IsRunning     = false;
         _recordedSize = 0;
         if (_flvDownloader != null)
         {
             _flvDownloader.Stop();
             _flvDownloader = null;
         }
         _commentProvider?.Disconnect();
         _mw.AppendLogln("INFO", "停止");
     }
     else
     {
         _mw.AppendLogln("ERROR", "已经是停止状态了");
     }
     _mw.SetStopBtn();
 }
Пример #2
0
 public void EndProcess()
 {
     force_stoping = true;
     downloader?.Stop();
     commentProvider?.Disconnect();
 }