notifySessionReady signals any goroutines waiting for the given session.
(sessionID string)
| 297 | |
| 298 | // notifySessionReady signals any goroutines waiting for the given session. |
| 299 | func (b *Bridge) notifySessionReady(sessionID string) { |
| 300 | if ch, loaded := b.sessionReady.LoadAndDelete(sessionID); loaded { |
| 301 | close(ch.(chan struct{})) |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | // reconnectSpiteStream attempts to re-open the SpiteStream with exponential backoff. |
| 306 | func (b *Bridge) reconnectSpiteStream(lastErr error) { |
no outgoing calls