diff --git a/core/net/rime/sabc.c b/core/net/rime/sabc.c index 63fb233e1..b4c4ee755 100644 --- a/core/net/rime/sabc.c +++ b/core/net/rime/sabc.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: sabc.c,v 1.4 2007/03/19 22:10:17 adamdunkels Exp $ + * $Id: sabc.c,v 1.5 2007/03/20 12:26:57 adamdunkels Exp $ */ /** @@ -68,7 +68,7 @@ void sabc_close(struct sabc_conn *c) { abc_close(&c->c); - ctimer_setop(&c->t); + ctimer_stop(&c->t); } /*---------------------------------------------------------------------------*/ static void @@ -101,6 +101,7 @@ sabc_send_stubborn(struct sabc_conn *c, clock_time_t t) if(c->buf == NULL) { return 0; } + send(c); ctimer_set(&c->t, t, send, c); return 1; diff --git a/core/net/rime/sabc.h b/core/net/rime/sabc.h index 9fee305ba..1bcea4674 100644 --- a/core/net/rime/sabc.h +++ b/core/net/rime/sabc.h @@ -44,7 +44,7 @@ * * This file is part of the Contiki operating system. * - * $Id: sabc.h,v 1.4 2007/03/19 22:10:17 adamdunkels Exp $ + * $Id: sabc.h,v 1.5 2007/03/20 12:26:57 adamdunkels Exp $ */ /** @@ -117,7 +117,6 @@ void sabc_close(struct sabc_conn *c); */ int sabc_send_stubborn(struct sabc_conn *c, clock_time_t t); - /** * \brief Cancel the current stubborn message. * \param c A sabc connection that must have been previously set up