Skip to content

Commit

Permalink
fix: release in xfer
Browse files Browse the repository at this point in the history
  • Loading branch information
William Silversmith committed Sep 10, 2024
1 parent 0d372fe commit b88b745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudfiles/resumable_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ def available(self):
return int(res[0])

def release(self):
cur = self.conn.cursor()
cur.execute(f"UPDATE filelist SET lease = 0")
cur.execute("commit")
cur.close()

def __len__(self):
return self.remaining()
Expand Down

0 comments on commit b88b745

Please sign in to comment.