restore background services

This commit is contained in:
Jakob Ketterl
2021-08-31 21:53:15 +02:00
parent 869f971ced
commit 120328ce12
4 changed files with 74 additions and 21 deletions

View File

@ -74,5 +74,5 @@ class AudioChopper(threading.Thread, Chain, ProfileSourceSubscriber):
def send(self, profile, line):
data = self.parser.parse(profile, line)
if data is not None:
if data is not None and self.writer is not None:
self.writer.write(pickle.dumps(data))