aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wrms.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrms.go b/wrms.go
index 7e45b97..a7cac19 100644
--- a/wrms.go
+++ b/wrms.go
@@ -113,6 +113,8 @@ func (conn *Connection) serve() {
}
}
+ conn.nextEvent++
+
data, err := json.Marshal(ev)
if err != nil {
llog.Error("Encoding the %s event failed with %s", ev.Event, err)
@@ -126,7 +128,6 @@ func (conn *Connection) serve() {
return
}
}
- conn.nextEvent++
}
func (c *Connection) Close() {