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
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
PRINTF("%d.%d: ipolite_send: cancel old send\n",
|
||||||
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1]);
|
linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1]);
|
||||||
queuebuf_free(c->q);
|
queuebuf_free(c->q);
|
||||||
|
c->q = NULL;
|
||||||
|
ctimer_stop(&c->t);
|
||||||
}
|
}
|
||||||
c->dups = 0;
|
c->dups = 0;
|
||||||
c->hdrsize = hdrsize;
|
c->hdrsize = hdrsize;
|
||||||
|
|
Loading…
Reference in a new issue