无人观看延时关闭

This commit is contained in:
xiongziliang 2019-05-27 21:37:29 +08:00
parent 5b88057a89
commit eabb673005
2 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ public:
private:
void onReaderChanged(int size){
_readerTicker.resetTime();
if(size != 0 || readerCount() != 0){
//还有消费者正在观看该流,我们记录最后一次活动时间
_readerTicker.resetTime();
_asyncEmitNoneReader = false;
return;
}

View File

@ -143,9 +143,9 @@ public:
}
private:
void onReaderChanged(int size){
_readerTicker.resetTime();
if(size != 0 || readerCount() != 0){
//还有消费者正在观看该流,我们记录最后一次活动时间
_readerTicker.resetTime();
_asyncEmitNoneReader = false;
return;
}