fix deprecation warning

the argument to qtimer.start should be an int not a float

the current code raises a deprecation warning with python 3.8
This commit is contained in:
Jens Hedegaard Nielsen 2020-09-16 10:48:37 +02:00
parent 9fdaffaf7d
commit 1d10561974

View File

@ -429,7 +429,7 @@ class QtProcess(Process):
This allows signals to be connected from the child process to the parent.
"""
self.timer.timeout.connect(self.processRequests)
self.timer.start(interval*1000)
self.timer.start(int(interval*1000))
def stopRequestProcessing(self):
self.timer.stop()