Fix lockup on JVM exit caused by push over SSH
commit8a18cd41c1bd47dc9e36740824ce3298d2b59834
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Jul 2008 01:43:54 +0000 (17 21:43 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 23 Jul 2008 19:51:40 +0000 (23 21:51 +0200)
tree7b4d9c0d0db9f443c18d29d18c1c81c6fd65f558
parentda33dee3a7b93370f50cb5134d7f4fa49ce2e3bf
Fix lockup on JVM exit caused by push over SSH

Push does not clean up the Transport correctly when it is done
so the JSch library still has user level threads running and we
do not close down the JVM.  We must close the transport.

This was broken by 2e05675201 ("Reuse the same SSH connection")
as the JSch session is held open inside of the Transport instance
in case there are additional calls made on the same Transport.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/pgm/Push.java
org.spearce.jgit/src/org/spearce/jgit/transport/FetchProcess.java
org.spearce.jgit/src/org/spearce/jgit/transport/OperationResult.java
org.spearce.jgit/src/org/spearce/jgit/transport/PushProcess.java