Something bad happened with a "timeout" parameter of mosquitto_loop() function in 4f61f6c161. Reverted.

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
pull/1886/head
raspopov 5 years ago committed by Roger Light
parent 866c395dcc
commit 0097a85ce0

@ -34,7 +34,7 @@ Contributors:
#define HAVE_PSELECT
#endif
int mosquitto_loop(struct mosquitto *mosq, int timeout_input, int max_packets)
int mosquitto_loop(struct mosquitto *mosq, int timeout, int max_packets)
{
#ifdef HAVE_PSELECT
struct timespec local_timeout;
@ -50,10 +50,6 @@ int mosquitto_loop(struct mosquitto *mosq, int timeout_input, int max_packets)
#ifdef WITH_SRV
int state;
#endif
time_t timeout;
UNUSED(timeout_input);
if(!mosq || max_packets < 1) return MOSQ_ERR_INVAL;
#ifndef WIN32

Loading…
Cancel
Save