Fix crash when not in debug mode
This commit is contained in:
parent
ac2c7d5108
commit
8dff378617
2
nncmpp.c
2
nncmpp.c
|
@ -1725,6 +1725,8 @@ app_on_reconnect (void *user_data)
|
||||||
c->on_failure = mpd_on_failure;
|
c->on_failure = mpd_on_failure;
|
||||||
c->on_connected = mpd_on_connected;
|
c->on_connected = mpd_on_connected;
|
||||||
c->on_event = mpd_on_events;
|
c->on_event = mpd_on_events;
|
||||||
|
|
||||||
|
if (g_debug_mode)
|
||||||
c->on_io_hook = mpd_on_io_hook;
|
c->on_io_hook = mpd_on_io_hook;
|
||||||
|
|
||||||
// We accept hostname/IPv4/IPv6 in pseudo-URL format, as well as sockets
|
// We accept hostname/IPv4/IPv6 in pseudo-URL format, as well as sockets
|
||||||
|
|
Loading…
Reference in New Issue