Ajnasz/devtest — comment on commit 0565262e25a6b255b037db67492a832e0301ac02
File: lib/main.js line 14
By Gozala:

You should also provide `onDetach` handler to cleanup `workers` array when workers get detached.

```js
onDetach: function(worker) {
let index = workers.indexOf(worker);
if (~index) workers.splice(index, 1);
}
```