Commit 9a87c333 authored by Alessandro Rubini's avatar Alessandro Rubini

proto-standard/state-initializing: delay 1s on error

Otherwise, a non-superuser Unix run takes 100% cpu time sending
to stderr the same error forever.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent eff63b1d
......@@ -72,6 +72,6 @@ int pp_initializing(struct pp_instance *ppi, unsigned char *pkt, int plen)
return 0;
failure:
ppi->next_state = PPS_FAULTY;
return ret;
ppi->next_delay = 1000; /* wait 1s before retrying */
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment