add comments and a test for zm_terminate in the checkCommandQueue while loop

pull/2434/head
Isaac Connor 2019-01-21 13:29:20 -05:00
parent 83a652aade
commit 189e78b42d
1 changed files with 4 additions and 4 deletions

View File

@ -527,7 +527,8 @@ void MonitorStream::runStream() {
bool was_paused = paused;
if ( connkey ) {
while(checkCommandQueue()) {
while ( checkCommandQueue() && !zm_terminate ) {
// Loop in here until all commands are processed.
Debug(2, "Have checking command Queue for connkey: %d", connkey);
got_command = true;
}
@ -536,8 +537,7 @@ Debug(2, "Have checking command Queue for connkey: %d", connkey );
touch(sock_path_lock);
last_comm_update = now;
}
}
} // end if connkey
if ( paused ) {
if ( !was_paused ) {