git4idea: IDEADEV-42214: fixed bug in lock suspending/resuming logic

This commit is contained in:
Constantine Plotnikov
2010-01-14 18:04:51 +03:00
parent 755f448306
commit a48ee43253
@@ -246,6 +246,7 @@ public class GitHandlerUtil {
}
else {
handler.myVcs.getCommandLock().writeLock().unlock();
suspended = true;
}
}
else if (action == RESUME) {
@@ -254,6 +255,7 @@ public class GitHandlerUtil {
}
else {
handler.myVcs.getCommandLock().writeLock().lock();
suspended = false;
}
}
}