EENE Dashboard upload to Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,9 +3,9 @@ $killed = @()
|
||||
Get-NetTCPConnection -State Listen -ErrorAction SilentlyContinue |
|
||||
Where-Object { $ports -contains $_.LocalPort } |
|
||||
ForEach-Object {
|
||||
$pid = $_.OwningProcess
|
||||
if ($killed -notcontains $pid) {
|
||||
Stop-Process -Id $pid -Force -ErrorAction SilentlyContinue
|
||||
$killed += $pid
|
||||
$procId = $_.OwningProcess
|
||||
if ($killed -notcontains $procId) {
|
||||
Stop-Process -Id $procId -Force -ErrorAction SilentlyContinue
|
||||
$killed += $procId
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user