Skip to content

Commit f7264a6

Browse files
committed
fix the deadlock issue caused by task.Result
1 parent adb8ebd commit f7264a6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Apache.IoTDB/DataStructure/SessionDataSet.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ private bool FetchResults()
250250
};
251251
try
252252
{
253-
var task = myClient.ServiceClient.fetchResultsAsync(req);
254-
task.Wait();
255-
var resp = task.Result;
253+
var resp = await myClient.ServiceClient.fetchResultsAsync(req);
256254

257255
if (resp.HasResultSet)
258256
{

0 commit comments

Comments
 (0)