1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-15 02:02:08 -04:00

weather: fix fallback temporarily

This commit is contained in:
bbedward
2026-02-27 22:37:10 -05:00
parent 7bea6b4a62
commit b9e9da579f
6 changed files with 86 additions and 21 deletions

View File

@@ -31,10 +31,8 @@ func newIpClient() *IpClient {
func (c *IpClient) Subscribe(id string) chan Location {
ch := make(chan Location, 1)
if location, err := c.GetLocation(); err != nil {
if location, err := c.GetLocation(); err == nil {
ch <- location
} else {
close(ch)
}
return ch