mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix bug where HTTP being disabled would cause stickiness
This commit is contained in:
parent
5bb70c2675
commit
5f91a8fdfe
5 changed files with 15 additions and 15 deletions
|
|
@ -87,7 +87,7 @@ function App:render()
|
|||
startSession = function(address, port)
|
||||
Logging.trace("Starting new session")
|
||||
|
||||
self.currentSession = Session.new({
|
||||
local success, session = Session.new({
|
||||
address = address,
|
||||
port = port,
|
||||
onError = function()
|
||||
|
|
@ -100,9 +100,12 @@ function App:render()
|
|||
end
|
||||
})
|
||||
|
||||
self:setState({
|
||||
sessionStatus = SessionStatus.Connected,
|
||||
})
|
||||
if success then
|
||||
self.currentSession = session
|
||||
self:setState({
|
||||
sessionStatus = SessionStatus.Connected,
|
||||
})
|
||||
end
|
||||
end,
|
||||
cancel = function()
|
||||
Logging.trace("Canceling session configuration")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue