Call modem_Hangup() from modem_Close() if it hasn't already
been called.
This commit is contained in:
parent
2f7866811e
commit
6c56b953f7
@ -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.77.2.39 1998/03/20 19:47:19 brian Exp $
|
||||
* $Id: modem.c,v 1.77.2.40 1998/03/20 19:48:14 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -807,6 +807,9 @@ modem_Close(struct physical *modem)
|
||||
if (modem->fd < 0)
|
||||
return;
|
||||
|
||||
if (modem->link.Timer.load)
|
||||
modem_Hangup(&modem->link, force_hack);
|
||||
|
||||
if (!isatty(modem->fd)) {
|
||||
modem_PhysicalClose(modem);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user