From ea5f1692fc2e649c28fe0b58f7c93de1effeda2d Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 8 Sep 2023 20:26:14 +0200 Subject: [PATCH] Revert "Version 2.3.4" This reverts commit ff0c618e537fd787ef4eb47d9f5bb5b701d0ccbc. --- pwnagotchi/mesh/utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pwnagotchi/mesh/utils.py b/pwnagotchi/mesh/utils.py index e97fa969..c46bae5d 100644 --- a/pwnagotchi/mesh/utils.py +++ b/pwnagotchi/mesh/utils.py @@ -1,5 +1,4 @@ -# import _thread -from concurrent.futures import ThreadPoolExecutor +import _thread import logging import time @@ -42,9 +41,7 @@ class AsyncAdvertiser(object): def start_advertising(self): if self._config['personality']['advertise']: - # _thread.start_new_thread(self._adv_poller, ()) - with ThreadPoolExecutor(max_workers=4) as executor: - executor.submit(self._adv_poller) + _thread.start_new_thread(self._adv_poller, ()) grid.set_advertisement_data(self._advertisement) grid.advertise(True)