call to setDaemon uses Bool argument

The argument 1 should be True in these files.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-31 15:35:54 +01:00
parent 78aeed20a9
commit 352133dcc0
2 changed files with 2 additions and 2 deletions

View File

@ -778,7 +778,7 @@ class IdleThread:
self.thread = Thread(target=self.noop) self.thread = Thread(target=self.noop)
else: else:
self.thread = Thread(target=self.__idle) self.thread = Thread(target=self.__idle)
self.thread.setDaemon(1) self.thread.setDaemon(True)
def start(self): def start(self):
self.thread.start() self.thread.start()

View File

@ -60,7 +60,7 @@ class IMAPRepository(BaseRepository):
self.kathread = ExitNotifyThread(target=self.imapserver.keepalive, self.kathread = ExitNotifyThread(target=self.imapserver.keepalive,
name="Keep alive " + self.getname(), name="Keep alive " + self.getname(),
args=(keepalivetime, self.kaevent)) args=(keepalivetime, self.kaevent))
self.kathread.setDaemon(1) self.kathread.setDaemon(True)
self.kathread.start() self.kathread.start()
def stopkeepalive(self): def stopkeepalive(self):