diff --git a/poll/engine.go b/poll/engine.go index 77dd5bd..79d0dd9 100644 --- a/poll/engine.go +++ b/poll/engine.go @@ -243,7 +243,7 @@ func main() { runninginstances[i].min_id = p.min_id } } - DeferRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan) + go DeferRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan) case v := <-reportPostChan: // New Post go writePost( v) case w := <-reportInstanceChan: // Start a new instance