From aa17363ac88c4dbf81804adf7f5781112d9570af Mon Sep 17 00:00:00 2001 From: Douglas Dawson Date: Sun, 9 Dec 2018 12:40:24 -0500 Subject: [PATCH 1/2] Disconnect on logout. --- events_stream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/events_stream.go b/events_stream.go index e946236..cb97b78 100644 --- a/events_stream.go +++ b/events_stream.go @@ -102,6 +102,9 @@ func (e *eventStream) listen() (connected chan bool) { break } + if notifyResponse.Action == "logout" { + e.disconnect() + } if notifyResponse.Status == "connected" { connected <- true } else if notifyResponse.Status == "disconnected" { From da572a9ac1a251ebfe3c962fd7e82c2ef180018d Mon Sep 17 00:00:00 2001 From: jeffreydwalter Date: Mon, 10 Dec 2018 00:56:10 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bc87c8..e255315 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ import ( "sync" "time" - "github.com/jeffreydwalter/arlo-golang" + "github.com/jeffreydwalter/arlo-go" ) const (