Skip to content

Commit

Permalink
add close() method to GridConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed Aug 29, 2024
1 parent 22b1ad0 commit f50f835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openlcb/canbus/tcpsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ def receive(self):
if 0x3B in chunk:
break
return b''.join(chunks).decode("utf-8")

def close(self):
self.sock.close()

0 comments on commit f50f835

Please sign in to comment.