mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
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:
commit
e691dec9a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user