Hang up the modem if the dial or login fails. This ensures that we

will not hold the line open if the other end has a broken modem or server.
This happens to me quite frequently with my ISP.
This commit is contained in:
Doug Rabson 1995-06-30 19:53:04 +00:00
parent f0d0a413a4
commit f553a3f620
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9382

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: modem.c,v 1.5 1995/04/16 13:38:39 amurai Exp $
* $Id: modem.c,v 1.6 1995/05/30 03:50:51 rgrimes Exp $
*
* TODO:
*/
@ -727,6 +727,7 @@ DialModem()
}
else
fprintf(stderr, "dial failed.\n");
HangupModem(0);
return(0);
}