add a timeout to wspr uploads

This commit is contained in:
Jakob Ketterl 2021-01-31 20:31:54 +01:00
parent 61a5250792
commit 3c91f3cc2f

View File

@ -63,7 +63,7 @@ class Worker(threading.Thread):
"mode": self._getMode(spot), "mode": self._getMode(spot),
} }
).encode() ).encode()
request.urlopen("http://wsprnet.org/post/", data) request.urlopen("http://wsprnet.org/post/", data, timeout=60)
class WsprnetReporter(Reporter): class WsprnetReporter(Reporter):