Bugfix
This commit is contained in:
parent
734a5ef2b6
commit
1211a98227
@ -60,6 +60,7 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
self.reporter = classes.Reporter(self)
|
self.reporter = classes.Reporter(self)
|
||||||
self.stop_threads = Event()
|
self.stop_threads = Event()
|
||||||
self.concurrency_available = Event()
|
self.concurrency_available = Event()
|
||||||
|
self.concurrency_available.set()
|
||||||
self.telegram = classes.TelegramBot(stop_event=self.stop_threads)
|
self.telegram = classes.TelegramBot(stop_event=self.stop_threads)
|
||||||
|
|
||||||
self.config.email = email
|
self.config.email = email
|
||||||
@ -416,6 +417,7 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
else:
|
else:
|
||||||
utils.process_error(msg, self.name, sys.exc_info(), self, None, None)
|
utils.process_error(msg, self.name, sys.exc_info(), self, None, None)
|
||||||
|
|
||||||
|
@utils.wait_for_lock
|
||||||
def sleep(self, seconds: int):
|
def sleep(self, seconds: int):
|
||||||
if seconds < 0:
|
if seconds < 0:
|
||||||
seconds = 0
|
seconds = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user