Skip to content

Commit

Permalink
Do not skip mainThread on sync
Browse files Browse the repository at this point in the history
Linux at startup have mainThread without stack, which cause first sync
not working as expected
  • Loading branch information
yuxiaomao committed Apr 29, 2024
1 parent fbda12a commit b3837f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class HLAdapter extends DebugSession {
threads = new Map();
for( t in dbg.getThreads() ) {
// skipped stopped thread with no stack (thread allocated for breaking on windows)
if( t == dbg.currentThread && !dbg.hasStack() ) {
if( t == dbg.currentThread && t != dbg.mainThread && !dbg.hasStack() ) {
debug("Skip thread "+t);
continue;
}
Expand Down

0 comments on commit b3837f4

Please sign in to comment.