Socket driver isn't modem

The socket driver erroneously acts like a modem on disconnect
unconditionally, even when told not to. Correct that (fixes
digarok/gsplus#118)
This commit is contained in:
T. Joseph Carter 2022-04-19 10:00:32 -07:00
parent 4805720545
commit 92ff3fa291

View File

@ -332,7 +332,9 @@ void scc_socket_close(int port, int full_close, double dcycs) {
return;
}
scc_socket_modem_hangup(port, dcycs);
if(g_serial_modem[port]) {
scc_socket_modem_hangup(port, dcycs);
}
/* and go back to modem mode */
scc_ptr->socket_state = 0;