Check all transport connected for subscriber only properly. (#1661)

This commit is contained in:
Raja Subramanian
2023-04-27 23:06:15 +05:30
committed by GitHub
parent fc09cacfce
commit 3f3b02357c
2 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -735,7 +735,11 @@ func (p *ParticipantImpl) clearMigrationTimer() {
}
func (p *ParticipantImpl) MaybeStartMigration(force bool, onStart func()) bool {
if !force && !p.TransportManager.HaveAllTransportEverConnected() {
allTransportConnected := p.TransportManager.HasSubscriberEverConnected()
if p.IsPublisher() {
allTransportConnected = allTransportConnected && p.TransportManager.HasPublisherEverConnected()
}
if !force && !allTransportConnected {
return false
}