rwadurian/backend/mpc-system/services/service-party-app/electron
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
..
modules fix(grpc): prevent stream race condition from triggering reconnection 2025-12-31 08:57:44 -08:00
types fix(service-party-app): 添加bech32类型声明和清理脚本 2025-12-28 20:14:17 -08:00
main.ts revert: undo incorrect threshold conversion that broke keygen 2025-12-31 07:58:36 -08:00
preload.ts feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00