diff options
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r-- | tftpy/TftpClient.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py index 5ce3b32..c854fa8 100644 --- a/tftpy/TftpClient.py +++ b/tftpy/TftpClient.py @@ -210,6 +210,10 @@ class TftpClient(TftpSession): # end while outputfile.close() + # The connection is closed. Discard socket and remote transfer port. + self.port = None + self.sock = None + end_time = time.time() duration = end_time - start_time if duration == 0: |