diff options
authorVadim Yanitskiy <>2020-12-25 14:32:28 +0100
committerVadim Yanitskiy <>2020-12-25 14:40:34 +0100
commit02830f3bd247ccfe0421782d957d08ebc235f1c6 (patch)
parent5599258b67f3af1ea764d983322d8b8d0199e2e5 (diff)
trx_toolkit/ fix: Thread.isAlive() was removed
As it turns out, in Python < 3.9 class Thread defines 'is_alive' and 'isAlive = is_alive'. In Python 3.9 the later has been removed, so crashes on receipt of 'POWEROFF': File "/home/wmn/wmn/osmocom/bb/src/target/trx_toolkit/", line 63, in running return self._thread.isAlive() AttributeError: 'Thread' object has no attribute 'isAlive' See for more details. Change-Id: Id441d76dddb659958803d507e0fb028fb06422a7
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/ b/src/target/trx_toolkit/
index 7232f740..51f04a82 100755
--- a/src/target/trx_toolkit/
+++ b/src/target/trx_toolkit/
@@ -60,7 +60,7 @@ class CLCKGen:
def running(self):
if self._thread is None:
return False
- return self._thread.isAlive()
+ return self._thread.is_alive()
def start(self):
# Make sure we won't start two threads