Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening Create Agent twice creates two new instances #725

Open
3 tasks done
aHappyConstant opened this issue Sep 17, 2022 · 1 comment
Open
3 tasks done

Opening Create Agent twice creates two new instances #725

aHappyConstant opened this issue Sep 17, 2022 · 1 comment
Assignees
Labels
type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project

Comments

@aHappyConstant
Copy link

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:
image

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:
image

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details
@aHappyConstant aHappyConstant added the type: imperfection Perceived defect in any part of project label Sep 17, 2022
@umbynos umbynos self-assigned this Sep 19, 2022
@umbynos
Copy link
Contributor

umbynos commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants