Skip to content

Commit fde3454

Browse files
committed
Throw InvalidOperationException when native thread ID is not found
1 parent 279d8b0 commit fde3454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/pythonengine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ public static ulong GetNativeThreadID()
603603
return pthread_selfOSX();
604604
}
605605

606-
return 0;
606+
throw new InvalidOperationException("Could not retrieve native thread ID.");
607607
}
608608

609609
/// <summary>

0 commit comments

Comments
 (0)