aboutsummaryrefslogtreecommitdiffstats
path: root/gps.py
diff options
context:
space:
mode:
Diffstat (limited to 'gps.py')
-rw-r--r--gps.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gps.py b/gps.py
index 48ace14..ff6aeae 100644
--- a/gps.py
+++ b/gps.py
@@ -50,12 +50,9 @@ class GPSService:
async def main():
gpss = await GPSService()
try:
- await gpss.subscribe()
- data = await gpss.receive()
- data = await gpss.receive()
- data = await gpss.receive()
data = await gpss.receive()
print(data)
+ await gpss.subscribe()
except ConnectionClosedError as e:
print(e)