Don't enter DATALINK_HANGUP state if we're currently in
DATALINK_OPENING.... we'll hang there forever with no open device.
This commit is contained in:
parent
6eddf53ee8
commit
4bc1da96a9
@ -23,7 +23,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: datalink.c,v 1.1.2.12 1998/02/21 01:45:05 brian Exp $
|
* $Id: datalink.c,v 1.1.2.13 1998/02/23 00:38:26 brian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -426,7 +426,7 @@ datalink_ComeDown(struct datalink *dl, int stay)
|
|||||||
|
|
||||||
if (dl->state != DATALINK_CLOSED && dl->state != DATALINK_HANGUP) {
|
if (dl->state != DATALINK_CLOSED && dl->state != DATALINK_HANGUP) {
|
||||||
modem_Offline(dl->physical);
|
modem_Offline(dl->physical);
|
||||||
if (dl->script.run) {
|
if (dl->script.run && dl->state != DATALINK_OPENING) {
|
||||||
LogPrintf(LogPHASE, "%s: Entering HANGUP state\n", dl->name);
|
LogPrintf(LogPHASE, "%s: Entering HANGUP state\n", dl->name);
|
||||||
dl->state = DATALINK_HANGUP;
|
dl->state = DATALINK_HANGUP;
|
||||||
chat_Init(&dl->chat, dl->physical, dl->cfg.script.hangup, 1);
|
chat_Init(&dl->chat, dl->physical, dl->cfg.script.hangup, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user