mirror of
https://github.com/chenhg5/cc-connect.git
synced 2026-07-03 12:28:10 +08:00
The upstream dingtalk-stream-sdk-go v0.9.1 has a race condition in processLoop (client.go:161) that causes "send on closed channel" panic after overnight idle. The fix exists in upstream PRs but is not yet merged/released. Add defer/recover around streamClient.Start() so the panic is caught and the existing reconnect loop can re-establish the connection instead of crashing the entire cc-connect process. Closes #1390 Co-authored-by: Cursor <cursoragent@cursor.com>