test
This commit is contained in:
parent
3bb95b6da8
commit
bb30caee9c
6
main.go
6
main.go
@ -234,6 +234,8 @@ func main() {
|
|||||||
Command: "pause",
|
Command: "pause",
|
||||||
}
|
}
|
||||||
_, err = conn.Write(px.Bytes())
|
_, err = conn.Write(px.Bytes())
|
||||||
|
logInfoDebug("Pause forced")
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
if paused && !forcePaused && len(clients) > 1 { // server is client #1
|
if paused && !forcePaused && len(clients) > 1 { // server is client #1
|
||||||
paused = false
|
paused = false
|
||||||
@ -242,6 +244,8 @@ func main() {
|
|||||||
Command: "unpause",
|
Command: "unpause",
|
||||||
}
|
}
|
||||||
_, err = conn.Write(px.Bytes())
|
_, err = conn.Write(px.Bytes())
|
||||||
|
logInfoDebug("Unpause forced")
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
if !paused && len(clients) == 1 { // server is client #1
|
if !paused && len(clients) == 1 { // server is client #1
|
||||||
paused = true
|
paused = true
|
||||||
@ -250,6 +254,8 @@ func main() {
|
|||||||
Command: "pause",
|
Command: "pause",
|
||||||
}
|
}
|
||||||
_, err = conn.Write(px.Bytes())
|
_, err = conn.Write(px.Bytes())
|
||||||
|
logInfoDebug("Pausing")
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user