This commit is contained in:
shoopea 2020-06-21 19:00:14 +02:00
parent 3bb95b6da8
commit bb30caee9c

View File

@ -234,6 +234,8 @@ func main() {
Command: "pause",
}
_, err = conn.Write(px.Bytes())
logInfoDebug("Pause forced")
time.Sleep(1 * time.Second)
}
if paused && !forcePaused && len(clients) > 1 { // server is client #1
paused = false
@ -242,6 +244,8 @@ func main() {
Command: "unpause",
}
_, err = conn.Write(px.Bytes())
logInfoDebug("Unpause forced")
time.Sleep(1 * time.Second)
}
if !paused && len(clients) == 1 { // server is client #1
paused = true
@ -250,6 +254,8 @@ func main() {
Command: "pause",
}
_, err = conn.Write(px.Bytes())
logInfoDebug("Pausing")
time.Sleep(1 * time.Second)
}
}