mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 21:25:16 +00:00
Fix incorrect synchronization for Plugin:_pull that would make polling flaky
This commit is contained in:
@@ -289,9 +289,14 @@ function Plugin:syncIn()
|
||||
table.insert(routes, {name})
|
||||
end
|
||||
|
||||
self:_pull(api, info.project, routes)
|
||||
local pullSuccess, pullResult = self:_pull(api, info.project, routes):await()
|
||||
|
||||
self._syncInProgress = false
|
||||
|
||||
if not pullSuccess then
|
||||
return Promise.reject(pullResult)
|
||||
end
|
||||
|
||||
print("Rojo: Sync successful!")
|
||||
end)
|
||||
:catch(function(err)
|
||||
|
||||
Reference in New Issue
Block a user