Skip to content

Opening Create Agent twice creates two new instances #725

Open
@ghost

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:
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
    I verified the problem still occurs when using the latest version
    My report contains all necessary details

Activity

ghost added
type: imperfectionPerceived defect in any part of project
on Sep 17, 2022
self-assigned this
on Sep 19, 2022
umbynos

umbynos commented on Sep 19, 2022

@umbynos
Contributor

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @umbynos

      Issue actions

        Opening Create Agent twice creates two new instances · Issue #725 · arduino/arduino-create-agent