flashmob 5 years ago
parent
commit
982a6c1e88
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backends/gateway.go

+ 1 - 0
backends/gateway.go

@@ -541,6 +541,7 @@ func (gw *BackendGateway) Start() error {
 			stop := make(chan bool)
 			stop := make(chan bool)
 			go func(workerId int, stop chan bool) {
 			go func(workerId int, stop chan bool) {
 				// blocks here until the worker exits
 				// blocks here until the worker exits
+				// for-loop used so that if workDispatcher panics, re-enter gw.workDispatcher
 				for {
 				for {
 					state := gw.workDispatcher(
 					state := gw.workDispatcher(
 						gw.conveyor,
 						gw.conveyor,