diff --git a/sshfs/spec.py b/sshfs/spec.py index 046a6ec..88f7f2b 100644 --- a/sshfs/spec.py +++ b/sshfs/spec.py @@ -100,7 +100,8 @@ async def _connect( connect = sync_wrapper(_connect) - async def _finalize(self, pool, stack): + @staticmethod + async def _finalize(pool, stack): await pool.close() # If an error occurs while the SSHFile is trying to