Fixing a file descriptor leak. Closes issue 22.
parent
f6442eb4e4
commit
6fd9391ad8
|
@ -156,6 +156,7 @@ class TftpContext(object):
|
|||
continue
|
||||
break
|
||||
else:
|
||||
self.sock.close()
|
||||
raise TftpException, "Hit max timeouts, giving up."
|
||||
|
||||
# Ok, we've received a packet. Log it.
|
||||
|
|
Reference in New Issue