# bunqueue v2.6.100

Fixes 2 bugs. Worker deregistration on disconnect: TCP, WebSocket, and SSE disconnect handlers now properly deregister workers when a client disconnects.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-100/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Fixes 2 bugs. Worker deregistration on disconnect: TCP, WebSocket, and SSE disconnect handlers now properly deregister workers when a client disconnects.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.6.100

```bash title="bun"
bun add bunqueue@2.6.100
```

```bash title="npm"
npm install bunqueue@2.6.100
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Bugfixes

- **Worker deregistration on disconnect**: TCP, WebSocket, and SSE disconnect handlers now properly deregister workers when a client disconnects. Previously, workers remained registered as "active" after disconnect, causing `skipIfNoWorker` to malfunction (cron jobs would fire even with no workers connected). On reconnect, the worker would immediately pick up the queued job instead of waiting for the next scheduled time (fixes #73).
- **SSE connection cleanup**: SSE `cancel` handler now releases owned jobs back to the queue on disconnect, matching the behavior of TCP and WebSocket handlers.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.6.99](https://bunqueue.dev/blog/bunqueue-v2-6-99/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.6.100) · [Commits since v2.6.98](https://github.com/egeominotti/bunqueue/compare/v2.6.98...v2.6.100) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
