Skip to content

Commit

Permalink
Merge pull request ggp-org#21 from SteveDraper/LocalRepositoryResourc…
Browse files Browse the repository at this point in the history
…eFreeing

Adding cleanup method to allow LocalGameRepository to free resources cle...
  • Loading branch information
samschreiber committed Oct 26, 2013
2 parents d336f13 + c20eca0 commit f0e2868
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/org/ggp/base/util/game/LocalGameRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,16 @@ public LocalGameRepository() {
throw new RuntimeException(e);
}
}

theRealRepo = new RemoteGameRepository(theLocalRepoURL);
}

public void cleanUp()
{
if (theLocalRepoServer != null) {
theLocalRepoServer.stop(0);
}
}

@Override
protected Game getUncachedGame(String theKey) {
Expand Down

0 comments on commit f0e2868

Please sign in to comment.