Skip to content

Commit 779fc27

Browse files
zonghaishangralf0131
authored andcommitted
[Dubbo-4115] When the network is reconnected, the listener should not to be empty. (#4116)
1 parent 13e876e commit 779fc27

File tree

1 file changed

+8
-1
lines changed
  • dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd

1 file changed

+8
-1
lines changed

dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClient.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,14 @@ public void unwatch() {
278278
}
279279

280280
try {
281-
this.listener = null;
281+
/**
282+
* issue : https://github.com/apache/incubator-dubbo/issues/4115
283+
*
284+
* When the network is reconnected, the listener is empty
285+
* and the data cannot be received.
286+
*/
287+
// this.listener = null;
288+
282289
if (watchRequest != null) {
283290
WatchCancelRequest watchCancelRequest =
284291
WatchCancelRequest.newBuilder().setWatchId(watchId).build();

0 commit comments

Comments
 (0)