Skip to content

Prevent double start of simplex instance#462

Open
yacovm wants to merge 1 commit into
mainfrom
noDblStart
Open

Prevent double start of simplex instance#462
yacovm wants to merge 1 commit into
mainfrom
noDblStart

Conversation

@yacovm

@yacovm yacovm commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Guard against starting an instance while it was already started.

Guard against starting an instance while it was already started.

Signed-off-by: Yacov Manevich <yacov.manevich@avalabs.org>
Comment thread instance.go
i.lock.Lock()
defer i.lock.Unlock()

if i.started {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it expected that if we call Start, Stop and then Start again we should not be able to start?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants