Skip to content

Commit 3f364d2

Browse files
committed
dipose before events wakeup call
I don't understand why but otherwise I get some hangs.
1 parent 0e4a2fd commit 3f364d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/sys/thread/Thread.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ class Thread {
164164
}
165165
if( exception != null )
166166
t.onAbort(exception);
167-
@:privateAccess main().events.wakeup();
168167
t.onExit();
169168
t.dispose();
169+
@:privateAccess main().events.wakeup();
170170
});
171171
if( name != null ) t.name = name;
172172
return t;

0 commit comments

Comments
 (0)