Skip to content

Commit f290b46

Browse files
authored
server: close server automatically with StartAndWait() (#734)
1 parent e46ae59 commit f290b46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.go

+1
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ func (s *Server) StartAndWait() error {
474474
if err != nil {
475475
return err
476476
}
477+
defer s.Close()
477478

478479
return s.Wait()
479480
}

0 commit comments

Comments
 (0)