Reopen closed fabric peer sessions

This commit is contained in:
2026-05-16 09:54:02 +03:00
parent 03efff6770
commit 057e3b65a7
4 changed files with 75 additions and 5 deletions
@@ -293,6 +293,18 @@ func (p *FabricSessionPump) Errors() <-chan error {
return p.errors
}
func (p *FabricSessionPump) Closed() bool {
if p == nil {
return true
}
select {
case <-p.done:
return true
default:
return false
}
}
func (p *FabricSessionPump) Close() error {
if p == nil {
return nil