Skip to content

Commit

Permalink
Fix a bug that happens when a put is done after a get
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Aug 10, 2024
1 parent d2ffdc1 commit cf7c3e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mavftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def __handle_list_reply(self, op, _m):
elif op.opcode == OP_Nack and len(op.payload) == 1 and op.payload[0] == ERR_EndOfFile:
logging_info("Total size %.2f kByte", self.total_size / 1024.0)
self.total_size = 0
self.__terminate_session()
self.op_pending = False
else:
logging_info('LIST: %s', op)
Expand Down

0 comments on commit cf7c3e7

Please sign in to comment.