mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
plugin: Prevent HTTP timeout cascading after session stop
This commit is contained in:
@@ -109,12 +109,17 @@ function ServeSession:start()
|
||||
end)
|
||||
end)
|
||||
:catch(function(err)
|
||||
self:__setStatus(Status.Disconnected, err)
|
||||
self:__stopInternal(err)
|
||||
end)
|
||||
end
|
||||
|
||||
function ServeSession:stop()
|
||||
self:__setStatus(Status.Disconnected)
|
||||
self:__stopInternal()
|
||||
end
|
||||
|
||||
function ServeSession:__stopInternal(err)
|
||||
self:__setStatus(Status.Disconnected, err)
|
||||
self.__apiContext:disconnect()
|
||||
end
|
||||
|
||||
function ServeSession:__setStatus(status, detail)
|
||||
|
||||
Reference in New Issue
Block a user