Author: toad
Date: 2008-06-25 19:35:19 +0000 (Wed, 25 Jun 2008)
New Revision: 20707

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
Delete references to parent.persistent()

Modified: 
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2008-06-25 19:34:06 UTC (rev 20706)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2008-06-25 19:35:19 UTC (rev 20707)
@@ -132,7 +132,7 @@
                }
                if(shouldSend && !dontSendEncoded)
                        cb.onEncode(block.getClientKey(), this, container, 
context);
-               if(shouldSend && parent.persistent())
+               if(shouldSend && persistent)
                        container.set(this);
                return block;
        }
@@ -193,7 +193,7 @@
                        fail(InsertException.construct(errors), container, 
context);
                        return;
                }
-               if(parent.persistent())
+               if(persistent)
                        container.set(this);
                getScheduler(context).register(this);
        }
@@ -207,7 +207,7 @@
                        if(finished) return;
                        finished = true;
                }
-               if(parent.persistent())
+               if(persistent)
                        container.set(this);
                if(e.isFatal() || forceFatal)
                        parent.fatallyFailedBlock(container, context);
@@ -221,7 +221,7 @@
                        synchronized (this) {
                                if(finished) return null;
                        }
-                       if(parent.persistent())
+                       if(persistent)
                                container.set(this);
                        return encode(container, context);                      
        
                } catch (InsertException e) {
@@ -248,7 +248,7 @@
                        parent.completedBlock(false, container, context);
                        cb.onSuccess(this, container, context);
                        finished = true;
-                       if(parent.persistent())
+                       if(persistent)
                                container.set(this);
                } else {
                        getScheduler(context).register(this);
@@ -294,7 +294,7 @@
                        }
                        finished = true;
                }
-               if(parent.persistent())
+               if(persistent)
                        container.set(this);
                parent.completedBlock(false, container, context);
                cb.onSuccess(this, container, context);
@@ -309,7 +309,7 @@
                        if(finished) return;
                        finished = true;
                }
-               if(parent.persistent())
+               if(persistent)
                        container.set(this);
                super.unregister(false, container);
                cb.onFailure(new InsertException(InsertException.CANCELLED), 
this, container, context);


Reply via email to