mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-15 23:02:05 +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
|
self.outboundMessages += 1
|
||||||
|
|
||||||
def tally(self, key):
|
def tally(self, key):
|
||||||
|
with self.lock:
|
||||||
if key not in self.current:
|
if key not in self.current:
|
||||||
self.current[key] = 1
|
self.current[key] = 1
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user