mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
Replace the global variable + lock + polling mechanism with asyncio.Event pattern for MCP server ready state tracking. Benefits: - Eliminates race conditions (Event.set() is thread-safe) - Event-driven notification instead of polling (no 50x sleep overhead) - Fixes test contamination from global state - Reduces code from 54 lines to 30 lines - Uses standard asyncio primitive for this pattern