Skip to content

Commit e35a748

Browse files
WillowSauceRWillowSauceR
authored andcommitted
only exec cmd when online greater than display_online
1 parent 42f3024 commit e35a748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def recv_packets(udp_skt, pbar):
100100
""]
101101
if int(infos['online']) >= display_online:
102102
pbar.write("\n".join(values))
103-
if exec_cmd:
104-
threading.Thread(target=exec_cmd_async, args=(exec_cmd, infos), daemon=True).start()
103+
if exec_cmd:
104+
threading.Thread(target=exec_cmd_async, args=(exec_cmd, infos), daemon=True).start()
105105
except socket.timeout:
106106
continue
107107
except ConnectionResetError:

0 commit comments

Comments
 (0)