Additional safeguards to prevent "CANCELLED: Cancelled on client" error: 1. Add `this.connected` check at the start of subscribeMessages() 2. Set messageStream to null after canceling old stream 3. Wrap new stream creation in try-catch to handle creation errors 4. Add logging for ignored cancel errors These changes ensure that: - subscribeMessages won't proceed if connection is lost - Old stream is fully cleaned up before creating new one - Errors during stream creation are properly caught and logged 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| modules | ||
| types | ||
| main.ts | ||
| preload.ts | ||