avoid a possible null ref

This commit is contained in:
UbitUmarov
2024-04-11 02:42:05 +01:00
parent bbac092621
commit c981f3c448
2 changed files with 4 additions and 3 deletions

View File

@@ -846,6 +846,8 @@ namespace Amib.Threading
continue;
Thread thread = te.WorkThread;
if(thread is null)
continue;
// Join don't work with negative numbers
if (!waitInfinitely && (millisecondsLeft < 0))