Skip to content

Commit

Permalink
db_completion: add missing mpdclient::FinishCommand() call
Browse files Browse the repository at this point in the history
This consumes the status code.  If we forget this, the connection will
be closed by libmpdclient.
  • Loading branch information
MaxKellermann committed Sep 11, 2024
1 parent d0639fb commit 2625f14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ncmpc 0.50 - not yet released
* support MPD 0.22 tag "label" (requires libmpdclient 2.17)
* fix config file overriding MPD_HOST environment variable
* click on progress bar seeks current song
* fix tab completion bug

ncmpc 0.49 - (2023-08-04)
* fix UI freeze if lyrics plugin is stuck
Expand Down
2 changes: 2 additions & 0 deletions src/db_completion.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ gcmp_list_from_path(struct mpdclient &c, const char *path,

completion.emplace(std::move(name));
}

c.FinishCommand();
}

0 comments on commit 2625f14

Please sign in to comment.