File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ protected void connect() {
88
88
89
89
@ Override
90
90
public void close () {
91
- if (! isClosed () ) {
92
- synchronized ( this ) {
91
+ synchronized ( this ) {
92
+ if (! isClosed () ) {
93
93
for (ServerTuple serverTuple : addressToServerTupleMap .values ()) {
94
94
serverTuple .server .close ();
95
95
}
96
+ super .close ();
96
97
}
97
- super .close ();
98
98
}
99
99
}
100
100
@@ -117,12 +117,12 @@ public void stateChanged(final ChangeEvent<ServerDescription> event) {
117
117
}
118
118
119
119
private void onChange (final ChangeEvent <ServerDescription > event ) {
120
- if (isClosed ()) {
121
- return ;
122
- }
123
-
124
120
boolean shouldUpdateDescription = true ;
125
121
synchronized (this ) {
122
+ if (isClosed ()) {
123
+ return ;
124
+ }
125
+
126
126
ServerDescription newDescription = event .getNewValue ();
127
127
128
128
LOGGER .fine (format ("Handling description changed event for server %s with description %s" ,
You can’t perform that action at this time.
0 commit comments