reconnect faster (2 sec)

This commit is contained in:
Andreas Öman 2007-12-02 13:48:29 +00:00
parent 972b501455
commit 6f7d557ea1

4
tcp.c
View file

@ -330,8 +330,8 @@ tcp_disconnect(tcp_session_t *ses, int err)
free(ses->tcp_name);
free(ses);
} else {
/* Try to reconnect in 5 seconds */
dtimer_arm(&ses->tcp_timer, tcp_client_reconnect_timeout, ses, 5);
/* Try to reconnect in 2 seconds */
dtimer_arm(&ses->tcp_timer, tcp_client_reconnect_timeout, ses, 2);
}
}