[Red5commits] [2445] wrap in beginUpdate / endUpdate

jbauch luke at codegent.com
Tue Oct 30 23:51:11 PDT 2007


wrap in beginUpdate / endUpdate


Timestamp: 10/25/07 18:10:14 EST (5 days ago) 
Change: 2445 
Author: jbauch

Files (see diff or trac for details): 
java/server/trunk/src/org/red5/server/so/SharedObjectScope.java


Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/2445

Index: /java/server/trunk/src/org/red5/server/so/SharedObjectScope.java
===================================================================
--- /java/server/trunk/src/org/red5/server/so/SharedObjectScope.java (revision 2444)
+++ /java/server/trunk/src/org/red5/server/so/SharedObjectScope.java (revision 2445)
@@ -341,5 +341,10 @@
     @Override
 	public Object getAttribute(String name, Object value) {
-		return so.getAttribute(name, value);
+    	beginUpdate();
+    	try {
+    		return so.getAttribute(name, value);
+    	} finally {
+    		endUpdate();
+    	}
 	}
 


Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.



More information about the Red5commits mailing list