Skip to content

Commit

Permalink
udb: update to work with new VSCode extension setup
Browse files Browse the repository at this point in the history
Signed-off-by: Maximus Streeter <[email protected]>
  • Loading branch information
Maximus Streeter committed Apr 29, 2024
1 parent 693e84b commit 16f08dd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions uni/udb/adapter.icn
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,15 @@ $endif
writes(sock, event)
end

# Disconnect from client and udb and startup as a fresh session.
# Disconnect from client and udb and end session.
method disconnect()
close(\dapcomSock)
# Kill terminal running dapcom
kill(\shellProcessId, 9)
# End communication with client
close(\sock)
# Restart session
put_cmdQueue("reset")
# End session
exit()
end

# Open a port as a server and block until client connect.
Expand All @@ -936,8 +937,12 @@ $endif
every !5 do
if sock := open(port, "na") then
return sock
else
else {
$ifdef VERBOSE
write("open(",port,") ERROR: ", \&errortext | "Unknown")
$endif
delay(1000)
}

#write("udap failed to open port: " || port)
end
Expand Down

0 comments on commit 16f08dd

Please sign in to comment.