mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-07-04 12:21:07 +03:00
Compare commits
2 Commits
37deed29ae
...
v1.6.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 03c7719c39 | |||
| db4cebe0b2 |
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.11"
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
|
|
||||||
- name: Setup MSVC 14.40 toolset
|
- name: Setup MSVC 14.40 toolset
|
||||||
|
|||||||
+1
-6
@@ -383,14 +383,9 @@ def run_tray() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
if mutex_result := _acquire_win_mutex() is False:
|
if (mutex_result := _acquire_win_mutex()) is False or mutex_result is None and not acquire_lock():
|
||||||
_show_info("Приложение уже запущено.", os.path.basename(sys.argv[0]))
|
_show_info("Приложение уже запущено.", os.path.basename(sys.argv[0]))
|
||||||
return
|
return
|
||||||
if mutex_result is None:
|
|
||||||
log.warning("Named mutex unavailable, falling back to lock file")
|
|
||||||
if not acquire_lock():
|
|
||||||
_show_info("Приложение уже запущено.", os.path.basename(sys.argv[0]))
|
|
||||||
return
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run_tray()
|
run_tray()
|
||||||
|
|||||||
Reference in New Issue
Block a user