aboutsummaryrefslogtreecommitdiff
path: root/wrms.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-06-01 14:29:47 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-06-01 14:29:47 +0200
commitdc2942dfeebfdc768a02730681a3c9a798722cfc (patch)
tree7726923d8acb06831940dda2324f013d25846822 /wrms.go
parent6decfb1935a95cea07bceeec5de26eb5a47472d5 (diff)
downloadWRMS-dc2942dfeebfdc768a02730681a3c9a798722cfc.tar.gz
WRMS-dc2942dfeebfdc768a02730681a3c9a798722cfc.zip
actually increase the expected next event id
Diffstat (limited to 'wrms.go')
-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() {