Don't try to fetch subscriptions, news, or plugin updates while in VM Comm system

This commit is contained in:
zzz
2015-09-19 19:06:07 +00:00
parent 2a3b55f3a4
commit cfc0664756
3 changed files with 13 additions and 1 deletions

View File

@@ -76,7 +76,8 @@ class SubscriptionIterator implements Iterator<AddressBook> {
public AddressBook next() {
Subscription sub = this.subIterator.next();
if (sub.getLastFetched() + this.delay < I2PAppContext.getGlobalContext().clock().now() &&
I2PAppContext.getGlobalContext().portMapper().getPort(PortMapper.SVC_HTTP_PROXY) >= 0) {
I2PAppContext.getGlobalContext().portMapper().getPort(PortMapper.SVC_HTTP_PROXY) >= 0 &&
!I2PAppContext.getGlobalContext().getBooleanProperty("i2p.vmCommSystem")) {
//System.err.println("Fetching addressbook from " + sub.getLocation());
return new AddressBook(sub, this.proxyHost, this.proxyPort);
} else {