Merge pull request #828 from oskarnp/pr-ipolite-fix

ipolite: stop ctimer and reset queuebuf pointer when canceling old send
This commit is contained in:
Nicolas Tsiftes 2014-11-20 15:10:42 +01:00
commit e691dec9a4

View File

@ -148,6 +148,8 @@ ipolite_send(struct ipolite_conn *c, clock_time_t interval, uint8_t hdrsize)
PRINTF("%d.%d: ipolite_send: cancel old send\n",
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1]);
queuebuf_free(c->q);
c->q = NULL;
ctimer_stop(&c->t);
}
c->dups = 0;
c->hdrsize = hdrsize;