Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Fix websocket closing error
Browse files Browse the repository at this point in the history
  • Loading branch information
miyakogi committed Mar 1, 2018
1 parent ac518f3 commit 6822b1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyppeteer/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def _on_message(self, message: str) -> None:

async def _on_close(self) -> None:
if not self._recv_fut.done():
self._recv_fut.cancel()
await self.connection.close()
for cb in self._callbacks.values():
cb.set_exception(NetworkError('connection closed'))
Expand Down

0 comments on commit 6822b1e

Please sign in to comment.