Fix typo and and logging messages

This commit is contained in:
2020-01-30 00:09:07 +01:00
parent 182faaf3c6
commit 62c7398b1c

4
uvscand/__init__.py Executable file → Normal file
View File

@@ -106,9 +106,11 @@ class AIO(asyncio.Protocol):
self.transport.write(response)
self.transport.close()
def connection_list(self, exc):
def connection_lost(self, exc):
if self.tmpfile:
self.logger.debug("removing temporary file {}".format(self.tmpfile))
os.remove(self.tmpfile)
self.logger.debug("closed connection to {}".format(self.peer))
def main():