diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c0b3fdd207114f414a9551904be8fdc95afdae9..0da74a341529b2993b833d6c873c7539e82c355b 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 b7ec501d4a82017d6bb7efd1ae8750245a5550e0..e0af4e377bc130e6c018117338f234c1e3d35a75 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,