Commit 065d7e2a authored by Chunchi Che's avatar Chunchi Che

update stream.ts

parent ff57d4f6
...@@ -56,8 +56,7 @@ export class WebSocketStream { ...@@ -56,8 +56,7 @@ export class WebSocketStream {
// websocket not closed, wait some time, and then handle next message from server // websocket not closed, wait some time, and then handle next message from server
await sleep(useConfig().streamInterval); await sleep(useConfig().streamInterval);
await reader.read().then(process);
return reader.read().then(process);
} }
} }
...@@ -68,7 +67,7 @@ export class WebSocketStream { ...@@ -68,7 +67,7 @@ export class WebSocketStream {
} }
// read some more, and call process function again // read some more, and call process function again
return reader.read().then(process); await reader.read().then(process);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment