From 28244ffd9a6bad6228fbe53d73040ec29780b8a7 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 22 Jul 2016 23:04:08 +0200 Subject: Fix pointer reuse problem --- matterclient/matterclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matterclient') diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index b4bafcd1..db6c54a3 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -189,8 +189,8 @@ func (m *MMClient) Logout() error { } func (m *MMClient) WsReceiver() { - var rmsg model.Message for { + var rmsg model.Message if m.WsQuit { m.log.Debug("exiting WsReceiver") return -- cgit v1.2.3