Skip to content

[BUG] Crash when cancelling out of the password prompt #446

Closed

Description

@deviant

Cancelling out of the password prompt using Ctrl-C or Ctrl-G causes ncmpcpp to crash with the following error:

terminate called after throwing an instance of 'NC::PromptAborted'
  what():  

This is because the exception in question is only caught in the first section of the main loop, and not when handling MPD::ServerError, which is where the password is read.

Activity

  1. arybczak commented on Jan 24, 2021

    @arybczak
    Collaborator

    Fixed in 541b8d7.

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

    Issue actions