Commit df52a2e0 authored by Leo Iannacone's avatar Leo Iannacone

wait half a second to get pool subdir created before send distribution

parent be79c652
...@@ -50,7 +50,10 @@ function __watch_build_status (socket, status) { ...@@ -50,7 +50,10 @@ function __watch_build_status (socket, status) {
// watcher on new distributions // watcher on new distributions
function __watch_distributions (socket) { function __watch_distributions (socket) {
fs.watch(config.debomatic.path, { persistent: true }, function (event, fileName) { fs.watch(config.debomatic.path, { persistent: true }, function (event, fileName) {
// wait half a second to get pool subdir created
setTimeout(function() {
utils.send_distributions(socket) utils.send_distributions(socket)
}, 500)
}) })
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment