summaryrefslogtreecommitdiff
path: root/dispatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch.go')
-rw-r--r--dispatch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.go b/dispatch.go
index 09e5bad9f..33b1fdca9 100644
--- a/dispatch.go
+++ b/dispatch.go
@@ -73,7 +73,7 @@ func DispatchLoop() {
case msg := <-resChan:
out, err := proto.Marshal(msg)
err = worker.SendBytes(out)
- check(err)
+ exitOnError(err)
case <-doneChan:
// All goroutines have completed. Now we can exit main().
return