From ed5a97243e058c0f3f23c242aabbea9c100f651d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 25 Oct 2003 22:08:02 +0000 Subject: [PATCH] As it turns out to be nearly impossible to avoid occasionally trying to post events to an object that is already destroyed, we'll allow transactions to be started on non-active objects and we'll just log a warning when the transaction is finally committed like we do for all other events on non-active objects. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2835 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/dobj/DObject.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/java/com/threerings/presents/dobj/DObject.java b/src/java/com/threerings/presents/dobj/DObject.java index 92c4e0851..7241fcd93 100644 --- a/src/java/com/threerings/presents/dobj/DObject.java +++ b/src/java/com/threerings/presents/dobj/DObject.java @@ -1,5 +1,5 @@ // -// $Id: DObject.java,v 1.69 2003/10/25 00:04:00 mdb Exp $ +// $Id: DObject.java,v 1.70 2003/10/25 22:08:02 mdb Exp $ package com.threerings.presents.dobj; @@ -643,13 +643,6 @@ public class DObject implements Streamable */ public void startTransaction () { - // sanity check - if (!isActive()) { - String errmsg = "Can't start transaction on non-active object " + - "[oid=" + getOid() + ", type=" + getClass().getName() + "]"; - throw new IllegalStateException(errmsg); - } - if (_tevent != null) { _tcount++; } else {