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:
dfr 1995-06-30 19:53:04 +00:00
parent 84a86fc1d2
commit abfd59ab81

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);
}