Put back terminate_

This commit is contained in:
Isaac Connor 2021-03-05 14:21:18 -05:00
parent cfb8e062c1
commit c96cb1dd8d
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#include <StreamReplicator.hh>
RTSPServerThread::RTSPServerThread(int port) :
scheduler_watch_var_(0)
terminate_(false), scheduler_watch_var_(0)
{
//unsigned short rtsp_over_http_port = 0;
//const char *realm = "ZoneMinder";
@ -64,6 +64,7 @@ void RTSPServerThread::Run() {
void RTSPServerThread::Stop() {
Debug(1, "RTSPServerThread::stop()");
terminate_ = true;
{
std::lock_guard<std::mutex> lck(scheduler_watch_var_mutex_);