[Webfunds-commits] java/webfunds/client AccountBrowserImpl.java

Ian Grigg iang@cypherpunks.ai
Sun, 4 Jun 2000 20:45:57 -0400 (AST)


iang        00/06/04 20:45:57

  Modified:    webfunds/client AccountBrowserImpl.java
  Log:
  added a delay in some point close to the freezing, and it seems to
  help, I haven't seen any freezing problems since.

Revision  Changes    Path
1.72      +8 -4      java/webfunds/client/AccountBrowserImpl.java

Index: AccountBrowserImpl.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/AccountBrowserImpl.java,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- AccountBrowserImpl.java	2000/05/29 18:55:02	1.71
+++ AccountBrowserImpl.java	2000/06/05 00:45:57	1.72
@@ -1,5 +1,5 @@
 /*
- * $Id: AccountBrowserImpl.java,v 1.71 2000/05/29 18:55:02 iang Exp $
+ * $Id: AccountBrowserImpl.java,v 1.72 2000/06/05 00:45:57 iang Exp $
  *
  * Copyright (c) Systemics Inc 1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -95,9 +95,11 @@
     public void   setCore(Core core) { if (c == null) c = core; }
     public String getType()          { return "AccountBrowser"; }
 
+    public void wink() { try { Thread.sleep(100); } catch (Exception ex) { } };
+
     public void run()
     {
-        logmsg("cs...");
+        logmsg("cs...");    wink();
         cs = c.getContractStore(this);
         logmsg("ui...");
         ui = c.getUInterface(this);
@@ -1184,12 +1186,14 @@
     }
 
     //
-    //  Yes, but when is wallets ever read?
-    //  And, what happens if it is re-called?
+    //  Yes, but when is wallets ever read?  In AccountTreeModel.
+    //  And, what happens if it is re-called?  Must take care not
+    //  to leave old wallets in old array hanging around.
     //
     public void setWallets(WalletInterface[] wallets)
     {
         this.wallets = wallets;
+        logmsg("wallets now set: " + wallets.length);
         //set AccountTreeModel
     }