You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/10/20 15:04:56 UTC
karaf git commit: [KARAF-4069] Cleanup session on ConsoleSessionImpl
close
Repository: karaf
Updated Branches:
refs/heads/master ab9c504e4 -> e93a3e7b5
[KARAF-4069] Cleanup session on ConsoleSessionImpl close
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/e93a3e7b
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/e93a3e7b
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/e93a3e7b
Branch: refs/heads/master
Commit: e93a3e7b52ce98ba7b5268020bab254a0685e5c4
Parents: ab9c504
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue Oct 20 15:04:07 2015 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue Oct 20 15:04:07 2015 +0200
----------------------------------------------------------------------
.../org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/e93a3e7b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
----------------------------------------------------------------------
diff --git a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
index a8c4ca7..4476211 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
@@ -245,6 +245,8 @@ public class ConsoleSessionImpl implements Session {
// Ignore
}
}
+ if (session != null)
+ session.close();
}
public void run() {