mirror of
https://github.com/powerline/powerline.git
synced 2025-07-24 14:25:21 +02:00
Allow multiple shutdown calls
This commit is contained in:
parent
840ac0109b
commit
0c9337bd72
@ -45,8 +45,9 @@ class ThreadedSegment(Thread):
|
||||
self.sleep(monotonic() - start_time)
|
||||
|
||||
def shutdown(self):
|
||||
self.keep_going = False
|
||||
self.update_lock.acquire()
|
||||
if self.keep_going:
|
||||
self.keep_going = False
|
||||
self.update_lock.acquire()
|
||||
|
||||
def set_interval(self, interval=None):
|
||||
# Allowing “interval” keyword in configuration.
|
||||
|
Loading…
x
Reference in New Issue
Block a user