Skip to content

Commit

Permalink
Update gcsfs/core.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Durant <[email protected]>
  • Loading branch information
pgcamus and martindurant authored Feb 9, 2024
1 parent 03c2079 commit 489030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def close_session(loop, session):
if loop is not None and session is not None:
if loop.is_running():
try:
current_loop = asyncio.get_event_loop()
current_loop = asyncio.get_running_loop()
current_loop.create_task(session.close())
return
except RuntimeError:
Expand Down

0 comments on commit 489030e

Please sign in to comment.