Skip to content

Commit

Permalink
[playframework#847] Close the cache after a start failure
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed May 19, 2011
1 parent 7fe98ca commit 570a4d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/src/play/Play.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,11 @@ public void run() {

} catch (PlayException e) {
started = false;
try { Cache.stop(); } catch(Exception ignored) {}
throw e;
} catch (Exception e) {
started = false;
try { Cache.stop(); } catch(Exception ignored) {}
throw new UnexpectedException(e);
}
}
Expand Down

0 comments on commit 570a4d8

Please sign in to comment.