[modules/speedtest] small fix for retrigger
This commit is contained in:
parent
44b3df5827
commit
4ac8c2ef7a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue