mirror of
https://github.com/onyx-and-iris/q3rcon-ps.git
synced 2025-02-26 19:55:11 +00:00
stop stopwatch
This commit is contained in:
parent
0cc63a2b75
commit
ea776fd93f
@ -31,7 +31,7 @@ try {
|
|||||||
Send-Message -rcon $rcon
|
Send-Message -rcon $rcon
|
||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
} until ($stopWatch.Elapsed -ge $timeSpan)
|
} until ($stopWatch.Elapsed -ge $timeSpan)
|
||||||
|
$stopWatch.Stop()
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
Disconnect-Rcon -rcon $rcon
|
Disconnect-Rcon -rcon $rcon
|
||||||
|
Loading…
Reference in New Issue
Block a user