mirror of
https://github.com/KevinMidboe/delugeClient.git
synced 2025-10-29 03:50:12 +00:00
Removed state check.
This commit is contained in:
@@ -23,14 +23,9 @@ async def time(websocket, path):
|
||||
|
||||
|
||||
async def deluge(websocket, path):
|
||||
last_msg = []
|
||||
while True:
|
||||
downloading = deluge_cli.main(['progress'])
|
||||
|
||||
if downloading is not last_msg:
|
||||
await websocket.send(json.dumps(downloading))
|
||||
print('sending response')
|
||||
last_msg = downloading
|
||||
await websocket.send(json.dumps(downloading))
|
||||
|
||||
await asyncio.sleep(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user