mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 20:40:13 +03:00
fix: Set auto_close=False on project_create so projects stay open when clients disconnect
This commit is contained in:
parent
2c1a83114d
commit
8f8abe4106
@ -297,8 +297,8 @@ async def project_get(
|
||||
async def project_create(
|
||||
name: Annotated[str, Field(description="Project name")],
|
||||
) -> list[dict[str, Any]]:
|
||||
"""Create a new GNS3 project."""
|
||||
params = {"name": name}
|
||||
"""Create a new GNS3 project. auto_close is set to False so the project stays open when clients disconnect."""
|
||||
params = {"name": name, "auto_close": False}
|
||||
return await asyncio.to_thread(_run_handler_sync, create_project_handler, params)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user