X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Ffixed.js;h=676947725bed0bb65fe72fe949be8652b08f39c5;hb=7784f548560f0e8957b73977137532a1372aa5cb;hp=8d899d57bb4ed00a54e4d1a1f2093641d8bd3f77;hpb=a3c8691eb5bd772a43746fd5860d54a786463039;p=poolifier.git diff --git a/lib/fixed.js b/lib/fixed.js index 8d899d57..67694772 100644 --- a/lib/fixed.js +++ b/lib/fixed.js @@ -34,9 +34,9 @@ class FixedThreadPool { } } - destroy () { + async destroy () { for (const worker of this.workers) { - worker.terminate() + await worker.terminate() } }