Skip to content

Commit

Permalink
Use respondAndRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Oct 7, 2024
1 parent 89201c7 commit 14a7dce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public void sendExecuteQuery(
queryResult.size(1);
successfulOps.incrementAndGet();
queryResult.incRef();
new Thread(() -> listener.onResponse(queryResult)).start();
new Thread(() -> ActionListener.respondAndRelease(listener, queryResult)).start();
} finally {
queryResult.decRef();
}
Expand Down Expand Up @@ -649,7 +649,7 @@ public void sendExecuteQuery(
queryResult.size(1);
successfulOps.incrementAndGet();
queryResult.incRef();
new Thread(() -> listener.onResponse(queryResult)).start();
new Thread(() -> ActionListener.respondAndRelease(listener, queryResult)).start();
} finally {
queryResult.decRef();
}
Expand Down

0 comments on commit 14a7dce

Please sign in to comment.