Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix update with broken stream
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Verbelen <tim.verbelen@intec.ugent.be>
  • Loading branch information
tverbele committed Feb 19, 2019
1 parent 72ad600 commit 3102091
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,8 @@ public synchronized void update(final InputStream stream)
throw new IllegalStateException(
"Cannot update uninstalled bundle " + toString());
}

final Revision updatedRevision = readAndProcessInputStream(stream);

boolean wasActive = false;
if (state == ACTIVE) {
Expand All @@ -876,8 +878,6 @@ public synchronized void update(final InputStream stream)
}
}

final Revision updatedRevision = readAndProcessInputStream(stream);

framework.checkForCollision(CollisionHook.UPDATING, this,
updatedRevision);

Expand Down

0 comments on commit 3102091

Please sign in to comment.