From 5aaf568ed55b79c5e1af9af56ff0d06ccbd8178b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 21 May 2020 21:22:49 -0600 Subject: [PATCH] Fix bug reported by user before I forget --- core/door_util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/door_util.js b/core/door_util.js index 6517f1be..24c2cd80 100644 --- a/core/door_util.js +++ b/core/door_util.js @@ -16,6 +16,10 @@ function trackDoorRunBegin(client, doorTag) { } function trackDoorRunEnd(trackInfo) { + if (!trackInfo) { + return; + } + const { startTime, client, doorTag } = trackInfo; const diff = moment.duration(moment().diff(startTime));