summaryrefslogtreecommitdiff
path: root/dispatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch.go')
-rw-r--r--dispatch.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/dispatch.go b/dispatch.go
index a5728ad81..373d30666 100644
--- a/dispatch.go
+++ b/dispatch.go
@@ -88,9 +88,7 @@ func DispatchLoop() {
select {
case msg := <-resChan:
out, err := proto.Marshal(msg)
- if err != nil {
- panic(err)
- }
+ check(err)
err = worker.SendBytes(out)
stats.v8workerSend++
stats.v8workerBytesSent += len(out)