mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix incorrect synchronization for Plugin:_pull that would make polling flaky
This commit is contained in:
parent
1b82044d7d
commit
82ba583fa0
1 changed files with 6 additions and 1 deletions
|
|
@ -289,9 +289,14 @@ function Plugin:syncIn()
|
||||||
table.insert(routes, {name})
|
table.insert(routes, {name})
|
||||||
end
|
end
|
||||||
|
|
||||||
self:_pull(api, info.project, routes)
|
local pullSuccess, pullResult = self:_pull(api, info.project, routes):await()
|
||||||
|
|
||||||
self._syncInProgress = false
|
self._syncInProgress = false
|
||||||
|
|
||||||
|
if not pullSuccess then
|
||||||
|
return Promise.reject(pullResult)
|
||||||
|
end
|
||||||
|
|
||||||
print("Rojo: Sync successful!")
|
print("Rojo: Sync successful!")
|
||||||
end)
|
end)
|
||||||
:catch(function(err)
|
:catch(function(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue