mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-15 14:52:06 +03:00
...except that tally should require the lock.
This commit is contained in:
parent
4bab5e3606
commit
384a4f40fe
@ -51,6 +51,7 @@ class StatsCollector(Thread):
|
||||
self.outboundMessages += 1
|
||||
|
||||
def tally(self, key):
|
||||
with self.lock:
|
||||
if key not in self.current:
|
||||
self.current[key] = 1
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user