mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 13:20:42 +01:00
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:
parent
851ca7b550
commit
0745225238
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user