From 76d7c1404eced863f1b08598b04682e2f7d810b9 Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Thu, 6 Feb 2020 07:52:34 -0800 Subject: [PATCH] Expose match stopped state to the Lua runtime match dispatcher. --- CHANGELOG.md | 1 + server/runtime_lua_match_core.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c0b3fdd2..0da74a341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr - Correctly calculate 'can enter' field for newly created tournaments. - Ensure tournament reset callbacks carry the correct ID. - Ensure tournament end callbacks carry the correct end and reset times. +- Expose match stopped state to the Lua runtime match dispatcher. ## [2.9.1] - 2020-01-14 ### Changed diff --git a/server/runtime_lua_match_core.go b/server/runtime_lua_match_core.go index b7ec501d4..e0af4e377 100644 --- a/server/runtime_lua_match_core.go +++ b/server/runtime_lua_match_core.go @@ -150,9 +150,10 @@ func NewRuntimeLuaMatchCore(logger *zap.Logger, db *sql.DB, jsonpbMarshaler *jso // deferMessageFn set in MatchInit. // presenceList set in MatchInit. - id: id, - node: node, - idStr: fmt.Sprintf("%v.%v", id.String(), node), + id: id, + node: node, + stopped: stopped, + idStr: fmt.Sprintf("%v.%v", id.String(), node), stream: PresenceStream{ Mode: StreamModeMatchAuthoritative, Subject: id, -- GitLab