Skip to content

Commit

Permalink
Merge pull request #33 from madflojo/wazero
Browse files Browse the repository at this point in the history
Forgot to cancel the context
  • Loading branch information
madflojo committed Jul 10, 2022
2 parents deedd1a + 85119e5 commit 5c17613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (s *Server) Shutdown() {
s.RLock()
defer s.RUnlock()
for _, m := range s.modules {
defer m.cancel()
defer m.module.Close(m.ctx)
defer m.pool.Close(m.ctx)
}
Expand Down

0 comments on commit 5c17613

Please sign in to comment.