Make sure retranstimer is set to 0

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@135 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer
2004-09-20 13:29:37 +00:00
parent 9682be31fb
commit 2b7b7e2e68

1
q931.c
View File

@@ -2112,6 +2112,7 @@ int q931_connect(struct pri *pri, q931_call *c, int channel, int nonisdn)
/* Setup timer */
if (c->retranstimer)
pri_schedule_del(pri, c->retranstimer);
c->retranstimer = 0;
if ((pri->localtype == PRI_CPE) && (!pri->subchannel))
c->retranstimer = pri_schedule_event(pri, T_313, pri_connect_timeout, c);
return send_message(pri, c, Q931_CONNECT, connect_ies);