Skip to content

Commit

Permalink
fix(jolokia): stop Jolokia instance in JolokiaService.reset() (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
grgrzybek authored and tadayosi committed Feb 17, 2025
1 parent b15ced0 commit 475f30c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/hawtio/src/plugins/shared/jolokia-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ class JolokiaService implements IJolokiaService {

reset() {
this.jolokiaUrl = undefined
this.jolokia?.then(jolokia => {
jolokia.stop()
return
})
this.jolokia = undefined
this.config = {
method: JolokiaListMethod.DEFAULT,
Expand Down

0 comments on commit 475f30c

Please sign in to comment.