We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e51e272 commit 20ddd65Copy full SHA for 20ddd65
1 file changed
src/Apache.IoTDB/DataStructure/SessionDataSet.cs
@@ -6,7 +6,7 @@
6
7
namespace Apache.IoTDB.DataStructure
8
{
9
- public class SessionDataSet
+ public class SessionDataSet: System.IDisposable
10
11
private readonly long _queryId;
12
private readonly string _sql;
@@ -306,6 +306,17 @@ public async Task Close()
306
_clientQueue.Add(myClient);
307
}
308
309
- }
+ }
310
+ ~SessionDataSet()
311
+ {
312
+ this.Dispose();
313
314
+
315
316
+ public void Dispose()
317
318
+ this.Close().Wait();
319
320
321
322
0 commit comments