From 62eb4f026f7a81967b7a0cf89747fb2ace686c59 Mon Sep 17 00:00:00 2001 From: boatbomber Date: Sat, 23 Jul 2022 09:24:16 -0700 Subject: [PATCH] Fix errors after session already ended (#587) --- plugin/src/ServeSession.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/src/ServeSession.lua b/plugin/src/ServeSession.lua index f9a3bd9b..ec6de75e 100644 --- a/plugin/src/ServeSession.lua +++ b/plugin/src/ServeSession.lua @@ -137,7 +137,9 @@ function ServeSession:start() end) end) :catch(function(err) - self:__stopInternal(err) + if self.__status ~= Status.Disconnected then + self:__stopInternal(err) + end end) end