[commands] Rename commands_cmdloop_break to commands_base_destroy and

free commands_base after breaking the libevent loop
This commit is contained in:
chme
2016-06-11 10:00:23 +02:00
parent 5258ee712c
commit 32ac6c2ea9
8 changed files with 11 additions and 23 deletions

View File

@@ -4782,7 +4782,7 @@ void mpd_deinit(void)
return;
}
commands_cmdloop_exit(cmdbase);
commands_base_destroy(cmdbase);
ret = pthread_join(tid_mpd, NULL);
if (ret != 0)
@@ -4808,7 +4808,4 @@ void mpd_deinit(void)
// Free event base (should free events too)
event_base_free(evbase_mpd);
// Close pipes and free command base
commands_base_free(cmdbase);
}