]> source.dussan.org Git - jgit.git/commit
Call unlockPack in finally 55/132255/2
authorMasaya Suzuki <masayasuzuki@google.com>
Sun, 11 Nov 2018 20:27:47 +0000 (12:27 -0800)
committerMasaya Suzuki <masayasuzuki@google.com>
Mon, 12 Nov 2018 01:28:20 +0000 (17:28 -0800)
commitad379793c7dedc805819fadb8bfc97a4f51c6e29
tree36d261d224bb1436e2f47962a92bb6b57f472a8d
parent54dd1d112a46a2b5a76fcdc1776c21fb110e497f
Call unlockPack in finally

The lock is obtained in receivePackAndCheckConnectivity. It seems to me
the structure that requres the caller to unlock the lock is wrong, but
at least by calling in finally ensures it is called even if an exception
is thrown.

Change-Id: I123841b017baf5acffe0064d1004ef11a0a5e6c2
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java