From 4de15ae592c73b047714d9ecedbe27d211e0b85d Mon Sep 17 00:00:00 2001 From: tanyawen01770 Date: Sat, 28 Jan 2023 21:37:29 +0800 Subject: [PATCH] fix:fail over --- src/main/java/org/csource/fastdfs/TrackerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/csource/fastdfs/TrackerClient.java b/src/main/java/org/csource/fastdfs/TrackerClient.java index b8fe088..529e945 100644 --- a/src/main/java/org/csource/fastdfs/TrackerClient.java +++ b/src/main/java/org/csource/fastdfs/TrackerClient.java @@ -96,7 +96,7 @@ public class TrackerClient { throw e; } } - if (connection != null && !failOver) { + if (connection != null || !failOver) { return connection; } //do fail over