Skip to content

Commit 7072640

Browse files
committed
Fix Cleanup not closing conn
1 parent 8767563 commit 7072640

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chdb/session.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ func (s *Session) Close() {
7575
func (s *Session) Cleanup() {
7676
// Remove the session directory, no matter if it is temporary or not
7777
_ = os.RemoveAll(s.path)
78+
s.conn.Close()
79+
globalSession = nil
7880
}
7981

8082
// Path returns the path of the session.

0 commit comments

Comments
 (0)