rwadurian/backend/mpc-system/services/service-party-app/electron
hailin ff995a827b fix(grpc-client): add connection check and better error handling in subscribeMessages
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>
2025-12-31 13:09:45 -08:00
..
modules fix(grpc-client): add connection check and better error handling in subscribeMessages 2025-12-31 13:09:45 -08:00
types fix(service-party-app): 添加bech32类型声明和清理脚本 2025-12-28 20:14:17 -08:00
main.ts fix(electron): properly cleanup gRPC message stream after keygen/sign 2025-12-31 13:07:43 -08:00
preload.ts feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00