diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-04 06:47:30 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-04 06:47:30 +0200 |
commit | 8dff3786174ec16680335ef4591ee1aaacf6a405 (patch) | |
tree | 4c81564e401a19349596821f75ef1707e1a07919 | |
parent | ac2c7d51088d1a00b9f9b2f591b8cc6a89c85b34 (diff) | |
download | nncmpp-8dff3786174ec16680335ef4591ee1aaacf6a405.tar.gz nncmpp-8dff3786174ec16680335ef4591ee1aaacf6a405.tar.xz nncmpp-8dff3786174ec16680335ef4591ee1aaacf6a405.zip |
Fix crash when not in debug mode
-rw-r--r-- | nncmpp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1725,7 +1725,9 @@ app_on_reconnect (void *user_data) c->on_failure = mpd_on_failure; c->on_connected = mpd_on_connected; c->on_event = mpd_on_events; - c->on_io_hook = mpd_on_io_hook; + + if (g_debug_mode) + c->on_io_hook = mpd_on_io_hook; // We accept hostname/IPv4/IPv6 in pseudo-URL format, as well as sockets char *address = xstrdup (get_config_string (g_ctx.config.root, |