1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 00:40:26 +00:00

Prevents disconnection on macOS

Need to check if in Linux it was disconnecting randomly too.
This commit is contained in:
Fellippe Heitor 2021-08-02 15:00:00 -03:00
parent 94acb48b6f
commit 542c72fc2c

View file

@ -7456,7 +7456,7 @@ SUB DebugMode
GetCommand:
GET #debugClient&, , temp$
IF _CONNECTED(debugClient&) = 0 THEN
IF os$ = "WIN" AND _CONNECTED(debugClient&) = 0 THEN
clearStatusWindow 0
setStatusMessage 1, "Debug session aborted.", 7
setStatusMessage 2, "Disconnected.", 2
@ -7484,7 +7484,7 @@ SUB DebugMode
SendCommand:
cmd$ = cmd$ + endc$
PUT #debugClient&, , cmd$
IF _CONNECTED(debugClient&) = 0 THEN
IF os$ = "WIN" AND _CONNECTED(debugClient&) = 0 THEN
clearStatusWindow 0
setStatusMessage 1, "Debug session aborted.", 7
setStatusMessage 2, "Disconnected.", 2