I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit bb14fa0b authored by zzz's avatar zzz
Browse files

* Console: Prevent OOMs in NewsFetcher or StatsSummarizer from

      killing the router
parent 95aba0c5
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ import net.i2p.apps.systray.SysTray; ...@@ -12,7 +12,7 @@ import net.i2p.apps.systray.SysTray;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.router.RouterContext; import net.i2p.router.RouterContext;
import net.i2p.util.FileUtil; import net.i2p.util.FileUtil;
import net.i2p.util.I2PThread; import net.i2p.util.I2PAppThread;
import org.mortbay.http.DigestAuthenticator; import org.mortbay.http.DigestAuthenticator;
import org.mortbay.http.HashUserRealm; import org.mortbay.http.HashUserRealm;
...@@ -160,11 +160,11 @@ public class RouterConsoleRunner { ...@@ -160,11 +160,11 @@ public class RouterConsoleRunner {
} }
NewsFetcher fetcher = NewsFetcher.getInstance(I2PAppContext.getGlobalContext()); NewsFetcher fetcher = NewsFetcher.getInstance(I2PAppContext.getGlobalContext());
I2PThread t = new I2PThread(fetcher, "NewsFetcher"); Thread t = new I2PAppThread(fetcher, "NewsFetcher");
t.setDaemon(true); t.setDaemon(true);
t.start(); t.start();
I2PThread st = new I2PThread(new StatSummarizer(), "StatSummarizer"); Thread st = new I2PAppThread(new StatSummarizer(), "StatSummarizer");
st.setDaemon(true); st.setDaemon(true);
st.start(); st.start();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment