diff options
Diffstat (limited to 'commands/commandeer.go')
-rw-r--r-- | commands/commandeer.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index b302cbfe0..444d75987 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -130,6 +130,15 @@ func (c *commandeerHugoState) hugo() *hugolib.HugoSites { return c.hugoSites } +func (c *commandeerHugoState) hugoTry() *hugolib.HugoSites { + select { + case <-c.created: + return c.hugoSites + case <-time.After(time.Millisecond * 100): + return nil + } +} + func (c *commandeer) errCount() int { return int(c.logger.LogCounters().ErrorCounter.Count()) } |