Skip to content

Commit f006245

Browse files
committed
use __drop_session
Signed-off-by: Neil Johnson <najohnsn@us.ibm.com>
1 parent e2ab750 commit f006245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tnz/ati.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,8 +2197,8 @@ def __capture(self, headfoot=True):
21972197
return "\n".join(lines)
21982198

21992199
def __close(self):
2200-
for tns in self.__session_tnz.values():
2201-
tns.shutdown()
2200+
while self.__session_tnz:
2201+
self.__drop_session()
22022202

22032203
def __drop_session(self):
22042204
"""perform the DROP SESSION function

0 commit comments

Comments
 (0)