Skip to content

Commit

Permalink
Merge pull request #55 from masahide/fix-wsl2-proxy-error
Browse files Browse the repository at this point in the history
Fix Recurring Error in PacketWorker Processing
  • Loading branch information
masahide authored Oct 26, 2024
2 parents 244cd1a + 8ba61ea commit 9ae3344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/wsl2-ssh-agent-proxy/pwsh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ $PacketWorkerScript = {
}
catch {
[Console]::Error.WriteLine("PacketWorker [ch:$($Packet.channelID) type:$($Packet.TypeNum)]: Exception occurred while processing. Error: $($_.Exception.Message). Worker will stop.")
$this.NamedPipeStream.Close()
$this.NamedPipeStream = $null
$this.StopWorker($Packet.ChannelID)
Start-Sleep -Seconds 1.0
continue
}
}
Expand Down

0 comments on commit 9ae3344

Please sign in to comment.