Skip to content
Snippets Groups Projects
Commit cd9f90f0 authored by David Trattnig's avatar David Trattnig
Browse files

Cleanup and fixes.

parent 654ad051
No related branches found
No related tags found
No related merge requests found
......@@ -224,9 +224,8 @@ class ServerRedisAdapter(threading.Thread, RedisMessenger):
if self.shutdown_event.is_set():
return
self.shutdown_event.set()
result = 'failed'
try:
result = self.socket.unbind("tcp://"+self.ip+":"+self.port)
self.socket.unbind("tcp://"+self.ip+":"+self.port)
except:
pass
......
......@@ -130,7 +130,7 @@ class AuraScheduler(ExceptionLogger, threading.Thread):
def run(self):
"""
Called when thread is started via `start()`. It calls `self.fetch_new_program()`
Called when thread is started via `start()`. It calls `self.fetch_new_programme()`
periodically depending on the `fetching_frequency` define engine configuration.
"""
while not self.exit_event.is_set():
......@@ -202,7 +202,7 @@ class AuraScheduler(ExceptionLogger, threading.Thread):
programme_as_string = ""
if self.programme is None or len(self.programme) == 0:
self.fetch_new_program()
self.fetch_new_programme()
try:
programme_as_string = json.dumps([p._asdict() for p in self.programme], default=alchemyencoder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment