From cb4aab8e0b3998352780612faa56250eb2971b2b Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 21 Apr 2006 16:53:05 +0200 Subject: [PATCH] dccp_send.c: Set status to SENDER_OFF on errros. --- dccp_send.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dccp_send.c b/dccp_send.c index 7fad4f7d..e838b3d8 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -234,8 +234,9 @@ void dccp_send_init(struct sender *s) s->client_cmds[SENDER_DELETE] = NULL; self = s; ret = dccp_open(); - if (ret < 0) + if (ret < 0) { PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); - else + s->status = SENDER_OFF; + } else s->status = SENDER_ON; } -- 2.39.5