Skip to content

Commit 372ce6b

Browse files
committed
Avoid deadlock by letting pwngrid waiting to be false when retries is zero.
1 parent 722afa0 commit 372ce6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beaconify.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class Beaconify(plugins.Plugin):
1919
__author__ = 'Artur Oliveira'
20-
__version__ = '1.0.3'
20+
__version__ = '1.0.4'
2121
__license__ = 'GPL3'
2222
__description__ = 'A plugin to send beacon frames more often and restarts pwngrid when it stops listening for other units\' beacons.'
2323

@@ -88,6 +88,7 @@ def inner_func(obj):
8888
time.sleep(obj.restart_pwngrid_time)
8989
retries -= 1
9090
logging.warning(f"[Beaconify] Failed to restart pwngrid too many times! The unit probably won't send or receive beacons until reboot.")
91+
self.waiting_pwngrid = False
9192
Thread(target=inner_func, args=(self,)).start()
9293

9394

0 commit comments

Comments
 (0)