Skip to content

Commit f784b16

Browse files
committed
Change on_message process method without using threads
1 parent da803dd commit f784b16

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

charon/pkgs/radas_signature_handler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
limitations under the License.
1515
"""
1616

17-
import threading
1817
import logging
1918
import json
2019
import os
@@ -64,9 +63,7 @@ def on_message(self, event: Event) -> None:
6463
"""
6564
On message callback
6665
"""
67-
# handle response from radas in a thread
68-
thread = threading.Thread(target=self._process_message, args=[event.message.body])
69-
thread.start()
66+
self._process_message(event.message.body)
7067

7168
def on_connection_error(self, event: Event) -> None:
7269
"""

0 commit comments

Comments
 (0)