dccp_send.c: Set status to SENDER_OFF on errros.
authorAndre <maan@p133.(none)>
Fri, 21 Apr 2006 14:53:05 +0000 (16:53 +0200)
committerAndre <maan@p133.(none)>
Fri, 21 Apr 2006 14:53:05 +0000 (16:53 +0200)
dccp_send.c

index 7fad4f7..e838b3d 100644 (file)
@@ -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;
 }