This commit is contained in:
rsc 2005-03-18 23:16:34 +00:00
parent 257d7b48a6
commit 80097b0182

View file

@ -231,9 +231,9 @@ fskickreply(Conv *c)
Req *r; Req *r;
if(c->hangup){ if(c->hangup){
if(c->req){ if((r = c->req) != nil){
respond(c->req, "hangup");
c->req = nil; c->req = nil;
respond(r, "hangup");
} }
return; return;
} }
@ -246,8 +246,8 @@ fskickreply(Conv *c)
r->ofcall.data = c->reply; r->ofcall.data = c->reply;
if(r->ofcall.count > r->ifcall.count) if(r->ofcall.count > r->ifcall.count)
r->ofcall.count = r->ifcall.count; r->ofcall.count = r->ifcall.count;
respond(r, nil);
c->req = nil; c->req = nil;
respond(r, nil);
c->nreply = 0; c->nreply = 0;
} }