Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Sikorski committed Nov 2, 2021
2 parents 5daa386 + ab44e13 commit 5a69910
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/galaxy/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,8 +1129,11 @@ async def coroutine():
async with plugin_class(reader, writer, token) as plugin:
await plugin.run()
finally:
writer.close()
await writer.wait_closed()
try:
writer.close()
await writer.wait_closed()
except (ConnectionAbortedError, ConnectionResetError):
pass

try:
if sys.platform == "win32":
Expand Down

0 comments on commit 5a69910

Please sign in to comment.