public void Stop()
{
NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
shouldStop = true;
if (pipedStream == null)
{
return;
}
ShutdownPipedStream();
//2015/3/3 销毁定时器,防止内存泄露
if (namedPipeHasVideoDataTimer != null)
{
namedPipeHasVideoDataTimer.Close();
namedPipeHasVideoDataTimer.Dispose();
logEx.Debug("Stop namedPipeHasVideoDataTimer Success.");
}
}