Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit f12906c

Browse files
committedApr 2, 2020
fix threads are not started properly
1 parent 5dc31fb commit f12906c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎roman/TypeHandler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def init(json: dict, roman_token: str):
5959
RomanClient(config).send_text_message(json['token'], f'Webhook generated: `{url}`')
6060
return
6161

62-
threading.Thread(target=init_response, args=(json, config, two_way,))
62+
threading.Thread(target=init_response, args=(json, config, two_way,)).start()
6363

6464

6565
def new_text(json: dict, roman_token: str):
@@ -71,4 +71,4 @@ def new_text(json: dict, roman_token: str):
7171
return
7272

7373
config = get_config()
74-
threading.Thread(target=new_text_response, args=(json, config, two_way,))
74+
threading.Thread(target=new_text_response, args=(json, config, two_way,)).start()

0 commit comments

Comments
 (0)
This repository has been archived.