From: Jim Procter Date: Wed, 30 May 2018 10:50:19 +0000 (+0100) Subject: JAL-3009 news reader thread should be in background. TODO: patch newsreader so it... X-Git-Tag: Release_2_10_5~52^2 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=refs%2Fheads%2Fbugs%2FJAL-3009_blockingNetworkThreads JAL-3009 news reader thread should be in background. TODO: patch newsreader so it uses GUI thread for displaying itself ?
 --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 8f04576..259e693 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -515,7 +515,7 @@ public class Desktop extends jalview.jbgui.GDesktop { final Desktop me = this; // Thread off the news reader, in case there are connection problems. - addDialogThread(new Runnable() + new Thread(new Runnable() { @Override public void run() @@ -526,7 +526,7 @@ public class Desktop extends jalview.jbgui.GDesktop showNews.setVisible(true); Cache.log.debug("Completed news thread."); } - }); + }).start(); } public void getIdentifiersOrgData()