update:sync mpv closing with discord status
This commit is contained in:
4
main.go
4
main.go
@@ -122,6 +122,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("✗ Connection broken, restart mpv to reconnect: %v\n", err)
|
fmt.Printf("✗ Connection broken, restart mpv to reconnect: %v\n", err)
|
||||||
|
if connected {
|
||||||
|
client.Logout()
|
||||||
|
connected = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
|
|||||||
Reference in New Issue
Block a user