We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbf9472 commit 16d3548Copy full SHA for 16d3548
src/main/java/reputation/node/models/Node.java
@@ -329,6 +329,13 @@ public void useNodeService() {
329
this.setRequestingNodeServices(false);
330
this.setLastNodeServiceTransactionType(null);
331
}
332
+
333
+ try {
334
+ this.mutexNodesServices.lock();
335
+ this.nodesWithServices.clear();
336
+ } finally {
337
+ this.mutexNodesServices.unlock();
338
+ }
339
340
341
@@ -1142,7 +1149,6 @@ public void update(Object object, Object object2) {
1142
1149
if (receivedTransaction.getType() == expectedTransactionType) {
1143
1150
try {
1144
1151
this.mutexNodesServices.lock();
1145
- this.nodesWithServices.clear();
1146
1152
this.nodesWithServices.add(receivedTransaction);
1147
1153
} finally {
1148
1154
this.mutexNodesServices.unlock();
0 commit comments