digarok / gsplus

Modern cross-platform Apple IIgs emulator and tools based on KEGS
http://apple2.gs/plus
GNU General Public License v2.0
151 stars 45 forks source link

Socket: Sends NO CARRIER when _not_ configured as modem #118

Open knghtbrd opened 2 years ago

knghtbrd commented 2 years ago

Having a little trouble using GSPlus to debug ADTPro type stuff because when the ADTPro server disconnects from the socket, it still acts modemy with simple socket emulation mode, sending a NO CARRIER, etc.

I believe the problem is in scc_socket_close in scc_socket_driver.c, around line 335. Should that line be conditional upon g_serial_modem[port] perhaps? It certainly looks to me like that's all that's necessary. Making it conditional seems to fix GSplus as tested using ProTERM.