Skip to content

Commit

Permalink
Bugfix with --count option
Browse files Browse the repository at this point in the history
  • Loading branch information
JsBergbau authored Apr 4, 2020
1 parent 81d76e7 commit f204e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LYWSD03MMC.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def connect():
bluepypid=re.findall(r'bluepy-helper\((.*)\)',pstree)[0] #Store the bluepypid, to kill it later
except IndexError: #Should normally occur because we're disconnected
logging.debug("Couldn't find pid of bluepy-helper")
if bluepypid == 0:
if bluepypid != 0:
os.system("kill " + bluepypid)
logging.debug("Killed bluepy with pid: " + str(bluepypid))
os._exit(0)
Expand Down

0 comments on commit f204e93

Please sign in to comment.