tcpsrv: Don't decrement wrkrRunning if terminating without a work item

wrkrRunning only gets incremented when a work item is issued, so the worker
shouldn't decrement it when terminating without a work item.

Fixes: 47982120408e ("work around clang static analyzer false positives")
Signed-off-by: John Brooks <jbrooks@ciena.com>
This commit is contained in:
John Brooks 2019-06-15 11:52:26 -04:00
parent 851ca7b550
commit 0745225238

View File

@ -693,7 +693,6 @@ wrkr(void *const myself)
// we need to query me->opSrv to avoid clang static
// analyzer false positive! -- rgerhards, 2017-10-23
assert(glbl.GetGlobalInputTermState() == 1);
--wrkrRunning;
break;
}
pthread_mutex_unlock(&wrkrMut);