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