rwadurian/backend/mpc-system/services/service-party-app/electron/modules
hailin b231667aba fix(grpc): prevent stream race condition from triggering reconnection
When switching message/event streams, the old stream's 'end' or 'error'
events could fire after the new stream was created. Since activeMessageSubscription
was already updated to the new session, the old stream's events would
incorrectly trigger reconnection, causing TSS message routing to fail.

Fix:
- Remove event listeners from old stream before canceling
- Use closure to capture current stream reference
- Check if event is from current active stream before triggering reconnect

This fixes the "Not connected" error during co-sign TSS message routing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 08:57:44 -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): prevent stream race condition from triggering reconnection 2025-12-31 08:57:44 -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 feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00