mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
timer_delete() instead of close() for FreeBSD timer
This commit is contained in:
parent
65110a9f39
commit
861635eb4d
@ -4749,7 +4749,11 @@ player_init(void)
|
||||
exit_fail:
|
||||
evbuffer_free(audio_buf);
|
||||
audio_fail:
|
||||
#if defined(__linux__)
|
||||
close(pb_timer_fd);
|
||||
#else
|
||||
timer_delete(pb_timer);
|
||||
#endif
|
||||
|
||||
return -1;
|
||||
}
|
||||
@ -4783,7 +4787,11 @@ player_deinit(void)
|
||||
free(history);
|
||||
|
||||
pb_timer_stop();
|
||||
#if defined(__linux__)
|
||||
close(pb_timer_fd);
|
||||
#else
|
||||
timer_delete(pb_timer);
|
||||
#endif
|
||||
|
||||
evbuffer_free(audio_buf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user