Fix of pyngrok crash

This commit is contained in:
sTiKyt 2020-05-29 00:03:51 +03:00
parent 1db86fc5f3
commit e58157ea2a
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4
2 changed files with 3 additions and 1 deletions

1
.config/ngrok.yml Normal file
View File

@ -0,0 +1 @@
{}

View File

@ -7,7 +7,7 @@
from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_background_command, wait, ngrok, requests, \
regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE
regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, pathlib_Path
import Defs.ThemeManager.theme as theme
import Defs.ActionManager.Server.server_menu as server_menu
import Defs.ActionManager.simple_informant as simple_informant
@ -83,6 +83,7 @@ def start_localhost(port):
def start_ngrok(port):
ngrok.DEFAULT_CONFIG_PATH = pathlib_Path(".config/ngrok.yml")
run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL)
run_command('clear')
# print('''