mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 15:08:19 +00:00
Don't start HAP server without any devices
This ensures that when iOS reconnects, it doesn't find an empty server and thinks all the devices have been removed, and removes them all locally.
This commit is contained in:
@@ -123,6 +123,10 @@ func main() {
|
||||
}()
|
||||
|
||||
br.WaitConfigured()
|
||||
if br.NumDevices() == 0 {
|
||||
log.Println("No devices added to bridge. Refusing to start.")
|
||||
return
|
||||
}
|
||||
|
||||
log.Println("hapz2m configured. starting HAP server...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user