[input] Forgot to not timeout if player actually did read

This commit is contained in:
ejurgensen 2019-03-23 23:41:09 +01:00
parent 1b0892a53a
commit ca56ac25ed

View File

@ -498,6 +498,11 @@ stop_cmd(void *arg, int *retval)
static void
timeout_cb(int fd, short what, void *arg)
{
if (input_buffer.bytes_read > 0)
return;
DPRINTF(E_WARN, L_PLAYER, "Timed out after %d sec without any reading from input source\n", INPUT_OPEN_TIMEOUT);
stop();
}