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: InvocationDirector.java,v 1.28 2003/07/12 22:34:03 mdb Exp $
// $Id: InvocationDirector.java,v 1.29 2003/07/16 18:03:30 ray Exp $
package com.threerings.presents.client;
@@ -335,8 +335,8 @@ public class InvocationDirector
_clobj.addListener(InvocationDirector.this);
// reregister our receivers
_clobj.startTransaction();
try {
_clobj.startTransaction();
Iterator iter = receivers.entries();
while (iter.hasNext()) {
_clobj.addToReceivers((Registration)iter.next());