Skip to content

Concurrency issue in spinner_printer #423

@niczy

Description

@niczy

There's a new goroutine accesing shared states like IsActive,ShowTimer in SpinnerPrinter#start. This causes race issue when calling other functions like "Stop" after the printer is started.

https://github.com/pterm/pterm/blob/master/spinner_printer.go#L140

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions