close at the end

This commit is contained in:
2021-04-25 13:11:10 +02:00
parent bc9d2493a9
commit b69d6032b2
3 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,6 @@ try:
m = socket.recv_string()
DATETIMES.append(datetime.now())
except KeyboardInterrupt:
socket.close()
dt = {}
for datetime in DATETIMES:
dts = datetime.strftime("%m/%d/%Y, %H:%M:%S")
@ -27,3 +26,4 @@ except KeyboardInterrupt:
dt[dts] +=1
for key in dt:
print(key,",",dt[key])
socket.close()