Start transactions outside of the try-finally clause so that if there

is a problem with starting a transaction, we don't get an exception
for failing to commit the transaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2712 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2003-07-16 18:03:30 +00:00
parent 2726f6a29d
commit 829f3ad0eb
4 changed files with 30 additions and 24 deletions
@@ -1,5 +1,5 @@
//
// $Id: LocationProvider.java,v 1.19 2003/02/26 17:54:56 mdb Exp $
// $Id: LocationProvider.java,v 1.20 2003/07/16 18:03:30 ray Exp $
package com.threerings.crowd.server;
@@ -155,8 +155,8 @@ public class LocationProvider
PlaceObject pold = (PlaceObject)_omgr.getObject(oldloc);
if (pold != null) {
Integer key = new Integer(bodoid);
pold.startTransaction();
try {
pold.startTransaction();
// remove their occupant info (which is keyed on oid)
pold.removeFromOccupantInfo(key);
// and remove them from the occupant list