mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Upgrade greenlet and sqlalchemy dependencies
This commit is contained in:
5 files changed
+10
-10
No files matched your search
@@ -20,6 +20,7 @@ import asyncio
|
||||
import sys
|
||||
import os
|
||||
import threading
|
||||
import inspect
|
||||
|
||||
|
||||
async def wait_run_in_executor(func, *args, **kwargs):
|
||||
@@ -103,7 +104,7 @@ async def wait_for_process_termination(process, timeout=10):
|
||||
async def _check_process(process, termination_callback):
|
||||
if not hasattr(sys, "_called_from_test") or not sys._called_from_test:
|
||||
returncode = await process.wait()
|
||||
if asyncio.iscoroutinefunction(termination_callback):
|
||||
if inspect.iscoroutinefunction(termination_callback):
|
||||
await termination_callback(returncode)
|
||||
else:
|
||||
termination_callback(returncode)
|
||||
|
||||
Reference in new issue
Block a user