aboutsummaryrefslogtreecommitdiffstats
path: root/lib/agent/webserver.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 17:37:56 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 17:37:56 +0100
commitc51d5034d527578da70bdd41b9ce13f28455c598 (patch)
tree78adcf6c861cbce0114cf2528a98e0bc603a06dd /lib/agent/webserver.go
parent0a5ab2ca1ab89e6e667b7f9c7bdffdff036ca9b7 (diff)
Added events decoder helpers.
Diffstat (limited to 'lib/agent/webserver.go')
-rw-r--r--lib/agent/webserver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/agent/webserver.go b/lib/agent/webserver.go
index b75abd4..13572b4 100644
--- a/lib/agent/webserver.go
+++ b/lib/agent/webserver.go
@@ -233,8 +233,8 @@ func (s *WebServer) socketHandler(c *gin.Context) {
so.On("disconnection", func() {
s.Log.Debugf("WS disconnected (WSID=%s, SID=%s)", so.Id(), sess.ID)
- s.sessions.UpdateIOSocket(sess.ID, nil)
s.events.UnRegister(apiv1.EVTAll, sess.ID)
+ s.sessions.UpdateIOSocket(sess.ID, nil)
})
})