Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bagas Udi Sahsangka committed Nov 9, 2021
1 parent 55f1efb commit 0a2bc51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parking-serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ def read_controller(gate):

data = ser.read_until(b"#")

s.terminate()
s.join()
if s.is_alive():
s.terminate()
s.join()

s.close()

# kalau tap kartu
Expand Down

0 comments on commit 0a2bc51

Please sign in to comment.