[modules/speedtest] small fix for retrigger

This commit is contained in:
tobi-wan-kenobi 2020-06-25 20:46:13 +02:00
parent 44b3df5827
commit 4ac8c2ef7a

View file

@ -10,6 +10,7 @@ Requires the following python module:
import core.module import core.module
import core.widget import core.widget
import core.input import core.input
import core.event
import core.decorators import core.decorators
import speedtest import speedtest
@ -37,6 +38,7 @@ class Module(core.module.Module):
def update(self): def update(self):
self.__running = True self.__running = True
core.event.trigger("update", [self.id], redraw_only=True)
s = speedtest.Speedtest() s = speedtest.Speedtest()
s.get_best_server() s.get_best_server()
s.download(threads=None) s.download(threads=None)