Skip to content

Commit

Permalink
fix: Return nil error on normal gateway exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jun 24, 2021
1 parent 968ce23 commit 34ce918
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions membrane/membrane.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ func (s *Membrane) Start() error {
// Wait and fail on either
select {
case gatewayErr := <-gatewayErrchan:
if err == nil {
// Normal Gateway shutdown
// Allowing the membrane to exit
return nil
}
exitErr = fmt.Errorf(fmt.Sprintf("Gateway Error: %v, exiting", gatewayErr))
case poolErr := <-poolErrchan:
exitErr = fmt.Errorf(fmt.Sprintf("Supervisor error: %v, exiting", poolErr))
Expand Down

0 comments on commit 34ce918

Please sign in to comment.