[util] fix location timeouts
This commit is contained in:
parent
0f74b690ca
commit
1983408e58
2 changed files with 3 additions and 4 deletions
|
@ -113,16 +113,12 @@ class Module(core.module.Module):
|
|||
|
||||
def __click_update(self, event):
|
||||
util.location.reset()
|
||||
# pause to allow reset time to complete
|
||||
time.sleep(2)
|
||||
|
||||
def update(self):
|
||||
widget = self.widget()
|
||||
|
||||
try:
|
||||
util.location.reset()
|
||||
# pause to allow reset time to complete
|
||||
time.sleep(2)
|
||||
|
||||
# Fetch fresh location information
|
||||
__info = util.location.location_info()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue