Author: toad
Date: 2008-06-18 10:58:10 +0000 (Wed, 18 Jun 2008)
New Revision: 20431
Modified:
branches/db4o/freenet/src/freenet/client/async/USKManager.java
Log:
Check for persistent subscriptions, not supported at present
Modified: branches/db4o/freenet/src/freenet/client/async/USKManager.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/USKManager.java
2008-06-18 10:55:10 UTC (rev 20430)
+++ branches/db4o/freenet/src/freenet/client/async/USKManager.java
2008-06-18 10:58:10 UTC (rev 20431)
@@ -172,6 +172,7 @@
* checked on a regular basis, unless runBackgroundFetch=true.
*/
public void subscribe(USK origUSK, USKCallback cb, boolean
runBackgroundFetch, RequestClient client, final ClientContext context) {
+ if(client.persistent()) throw new
UnsupportedOperationException("USKManager subscriptions cannot be persistent");
USKFetcher sched = null;
long ed = origUSK.suggestedEdition;
if(ed < 0) {