mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-15 00:34:05 +09:00
complete previous commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user