complete previous commit

This commit is contained in:
fduncanh
2022-02-21 13:18:17 -05:00
parent 2ac3e3ef8e
commit 887ad7f0a6
2 changed files with 4 additions and 3 deletions

View File

@@ -354,7 +354,7 @@ raop_ntp_thread(void *arg)
logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp exiting thread");
if (conn_reset && raop_ntp->callbacks.conn_reset) {
raop_ntp->callbacks.conn_reset(raop_ntp->callbacks.cls, timeout_counter, false);
raop_ntp->callbacks.conn_reset(raop_ntp->callbacks.cls, timeout_counter, false);
}
return 0;
}

View File

@@ -599,14 +599,15 @@ extern "C" void conn_destroy (void *cls) {
}
}
extern "C" void conn_reset (void *cls, int timeouts) {
extern "C" void conn_reset (void *cls, int timeouts, bool reset_video) {
LOGI("***ERROR lost connection with client (network problem?)");
if (timeouts) {
LOGI(" Client no-response limit of %d timeouts (%d seconds) reached:", timeouts, 3*timeouts);
LOGI(" Sometimes the network connection may recover after a longer delay:\n"
" the default timeout limit n = %d can be changed with the \"-reset n\" option", NTP_TIMEOUT_LIMIT);
}
close_window = false; /* leave "frozen" window open */
printf("reset_video %d\n",(int) reset_video);
close_window = reset_video; /* leave "frozen" window open if reset_video is false */
raop_stop(raop);
reset_loop = true;
}