rwadurian/backend/mpc-system/services/service-party-app/electron/modules
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
..
account-client.ts fix(co-sign): fix threshold_n display and add missing fields in GetSignSessionByInviteCode 2025-12-31 01:47:08 -08:00
address-derivation.ts feat(service-party-app): 添加SQLite存储和Kava区块链集成 2025-12-28 19:45:45 -08:00
database.ts feat(mpc-system): 增强连接可靠性和消息去重机制 2025-12-29 07:37:03 -08:00
grpc-client.ts fix(grpc-client): add connection check and better error handling in subscribeMessages 2025-12-31 13:09:45 -08:00
kava-client.ts feat(service-party-app): 添加SQLite存储和Kava区块链集成 2025-12-28 19:45:45 -08:00
kava-tx-service.ts feat(service-party-app): add Kava network switch (mainnet/testnet) 2025-12-30 10:31:27 -08:00
storage.ts feat(service-party-app): 添加签名功能并重命名应用 2025-12-28 08:00:00 -08:00
tss-handler.ts fix(electron): properly cleanup gRPC message stream after keygen/sign 2025-12-31 13:07:43 -08:00