|
@ -52,7 +52,7 @@ func (broker *MessageBroker) Subscribe(stream messaging_pb.SeaweedMessaging_Subs |
|
|
go func() { |
|
|
go func() { |
|
|
for isConnected { |
|
|
for isConnected { |
|
|
if _, err := stream.Recv(); err != nil { |
|
|
if _, err := stream.Recv(); err != nil { |
|
|
println("disconnecting connection to", subscriberId, tp.String()) |
|
|
|
|
|
|
|
|
// println("disconnecting connection to", subscriberId, tp.String())
|
|
|
isConnected = false |
|
|
isConnected = false |
|
|
lock.cond.Signal() |
|
|
lock.cond.Signal() |
|
|
} |
|
|
} |
|
|