Skip to content

Commit 4a5854f

Browse files
author
James Brundage
committed
fix: Get-WebSocket quieting previous job check ( Fixes #43 )
1 parent 1615e0b commit 4a5854f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Get-WebSocket.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function Get-WebSocket {
325325
$Name = $WebSocketUri
326326
}
327327

328-
$existingJob = foreach ($jobWithThisName in (Get-Job -Name $Name)) {
328+
$existingJob = foreach ($jobWithThisName in (Get-Job -Name $Name -ErrorAction Ignore)) {
329329
if (
330330
$jobWithThisName.State -in 'Running','NotStarted' -and
331331
$jobWithThisName.WebSocket -is [Net.WebSockets.ClientWebSocket]

0 commit comments

Comments
 (0)