Closed grossmj closed 9 years ago
I see two issues:
I have fix the issues related for the double open
About the close issue. What did you think about preventing close of a project if a a client listen the notification feed?
We need to discuss the reopening project by phone i think we have some corner cases ...
Tested it's work fine with the notification feed. The system checking if another client is not connected work.
Steps to reproduce:
Start a GUI and load a project. Start a second GUI and load the same project At this point error messages like these can been seen (expected):
Close the second GUI. Close the first GUI.
Errors like these can be seen and we cannot close the GUI (similar to bug https://github.com/GNS3/gns3-server/issues/80)
Proposed solution: when loading a topology we should try to create the project just once. This can be implemented in the createNode() method of each module class (e.g. https://github.com/GNS3/gns3-gui/blob/rest-api/gns3/modules/vpcs/__init__.py#L167) like it was done in the old GUI. This should be combined with a server version check.
On the server side in project manager we send an error if the project is already openned: https://github.com/GNS3/gns3-server/blob/asyncio/gns3server/modules/project_manager.py#L73