Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Mar 11, 2024
1 parent 83ed8d2 commit 51bc0c5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ class FlinkSQLSessionManager(engineContext: DefaultContext)

override def closeSession(sessionHandle: SessionHandle): Unit = {
try {
val session = super.getSessionOption(sessionHandle)
session.foreach(s =>
super.getSessionOption(sessionHandle).foreach(s =>
sessionManager.closeSession(s.asInstanceOf[FlinkSessionImpl].fSession.getSessionHandle))
super.closeSession(sessionHandle)
} catch {
Expand Down

0 comments on commit 51bc0c5

Please sign in to comment.