When we do a `dial'' or
`open'' from DATALINK_READY, go to
DATALINK_CARRIER and turn off scripting. This should fix instances where ``term'' is used followed by ~. and then ``dial''/``open'' (it currently just sits there looking at you). Reported by: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
This commit is contained in:
parent
6de9811ef7
commit
5e269efe6e
@ -1076,13 +1076,12 @@ bundle_Open(struct bundle *bundle, const char *name, int mask, int force)
|
||||
if ((mask & dl->physical->type) &&
|
||||
(dl->state == DATALINK_CLOSED ||
|
||||
(force && dl->state == DATALINK_OPENING &&
|
||||
dl->dial.timer.state == TIMER_RUNNING))) {
|
||||
if (force) /* Ignore redial timeout ? */
|
||||
timer_Stop(&dl->dial.timer);
|
||||
dl->dial.timer.state == TIMER_RUNNING) ||
|
||||
dl->state == DATALINK_READY)) {
|
||||
timer_Stop(&dl->dial.timer); /* We're finished with this */
|
||||
datalink_Up(dl, 1, 1);
|
||||
if (mask & PHYS_AUTO)
|
||||
/* Only one AUTO link at a time */
|
||||
break;
|
||||
break; /* Only one AUTO link at a time */
|
||||
}
|
||||
if (name != NULL)
|
||||
break;
|
||||
|
@ -969,8 +969,10 @@ datalink_Up(struct datalink *dl, int runscripts, int packetmode)
|
||||
case DATALINK_READY:
|
||||
if (!dl->script.packetmode && packetmode) {
|
||||
dl->script.packetmode = 1;
|
||||
if (dl->state == DATALINK_READY)
|
||||
datalink_LoginDone(dl);
|
||||
if (dl->state == DATALINK_READY) {
|
||||
dl->script.run = 0;
|
||||
datalink_NewState(dl, DATALINK_CARRIER);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user