Skip to content

Commit

Permalink
修正一个问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chatop committed Nov 27, 2020
1 parent c4d1fb2 commit aa1f03c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions StreamNodeWebApi/AutoTasker/CameraAutoKeeper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,8 @@ private static void keeperCamera()
liveCamera(cit);
}

if (cit != null && (cit.EnableLive == false || cit.Activated == true) //为了自己可控的进行推流与断流控制,这边只处理cit.Activated为true的情况
if (cit != null && cit.Activated == true && cit.EnableLive == false) //为了自己可控的进行推流与断流控制,这边只处理cit.Activated为true的情况
//手动推流的情况下,可以将数据库Activated设置了False来解决推上去后又断下来的问题
) //停止摄像头,如果activated为False,就一定要停止
{
stopCamera(cit);
}
Expand Down

0 comments on commit aa1f03c

Please sign in to comment.