Skip to content

Commit 0f2bd1d

Browse files
authored
Merge pull request PowerShellMafia#150 from breenmachine/dev
Fixed thread countdown timer in Invoke-ThreadedFunction, wasn't ever …
2 parents c53cd87 + 8270743 commit 0f2bd1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Recon/PowerView.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9263,7 +9263,7 @@ function Invoke-ThreadedFunction {
92639263
$WaitTimeout = Get-Date
92649264

92659265
# set a 60 second timeout for the scanning threads
9266-
while ($($Jobs | Where-Object {$_.IsCompleted -eq $False}).count -gt 0 -or $($($(Get-Date) - $WaitTimeout).totalSeconds) -gt 60) {
9266+
while ($($Jobs | Where-Object {$_.IsCompleted -eq $False}).count -gt 0 -and $($($(Get-Date) - $WaitTimeout).totalSeconds) -lt 60) {
92679267
Start-Sleep -MilliSeconds 500
92689268
}
92699269

0 commit comments

Comments
 (0)