Open

Description
Describe the problem
So I accidentally opened Arduino Create Agent twice and two instances of it appeared on my taskbar.
Similarly, I opened it 6 times and this happened:
To reproduce
Open Create Agent more than one time.
Expected behavior
I expected nothing would happen.
Arduino Create Agent version
1.2.6-b3c91fc
Operating system
Windows
Operating system version
11
Browser
Brave
Browser version
1.43.93 Chromium: 105.0.5195.127 (Official Build) (64-bit)
Additional context
Multiple instances of Create Agent also appear in the Task Manager:
Issue checklist
- I searched for previous reports inI verified the problem still occurs when using the latest versionMy report contains all necessary details
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
umbynos commentedon Sep 19, 2022
Hello! The Arduino Create Agent does not have a mechanism to exit if an instance of the agent is already running. This is because during the installation, 2 instances are being run: one for the HTTPS certs install, and the other one is the real agent. See here #217 (comment)
Also the agent starts by default on port 8991, if it finds this port already busy it starts listening on the next one, and so on
I don't know if this will be implemented in the future.