Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle debugger disconnect and reconnect properly
When connecting the debugger the debugger variable was being set to true before setting up the dbgMain and other related function pointers. This caused the idle loop to attempt to call dbgMain which was still NULL. This change makes sure that debugger isn't set to true until all function pointers are set and that when disconnecting the remotePort variable is reset back to 0 so we can reconnect properly.
- Loading branch information