[Webfunds-commits] java/webfunds/sox SmartIssuer.java

Ian Grigg iang@cypherpunks.ai
Thu, 31 Aug 2000 10:13:10 -0400 (AST)


iang        00/08/31 10:13:10

  Modified:    webfunds/sox SmartIssuer.java
  Log:
  minor changes and name change

Revision  Changes    Path
1.13      +12 -9     java/webfunds/sox/SmartIssuer.java

Index: SmartIssuer.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/SmartIssuer.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SmartIssuer.java	2000/07/21 21:31:18	1.12
+++ SmartIssuer.java	2000/08/31 14:13:09	1.13
@@ -1,5 +1,5 @@
 /*
- * $Id: SmartIssuer.java,v 1.12 2000/07/21 21:31:18 gelderen Exp $
+ * $Id: SmartIssuer.java,v 1.13 2000/08/31 14:13:09 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -115,15 +115,18 @@
         logmsg("getReady()");
         if (current != null)
         {
-            if (current.isDead())
-                current = null;
-            else
+            if (!current.isDead())
                 return ;
+
+            current = null;
+            logmsg("old is dead, need new SimpleIssuer");
         }
+        else
+            logmsg("first time, need new SimpleIssuer");
 
         URL url;
         HttpAgent http;
-        SimpleIssuer icy;
+        SimpleIssuer simp;
         int failures = 0;
         int laters   = 0;
 
@@ -135,11 +138,11 @@
             logmsg("new Simple at " + url);
 
             http = new HttpAgent(url, true, getDebug());
-            icy = new SimpleIssuer(""+which, cert, http, getDebug());
+            simp = new SimpleIssuer(""+which, cert, http, getDebug());
 
             logmsg(which + ": " + url);
             try {
-                icy.getReady();
+                simp.getReady();
             } catch (SOXLaterException ex) {
                 laters++;
                 logmsg(url + " : later?");
@@ -151,9 +154,9 @@
             }
 
             logmsg(which + " is good");
-            if (!icy.isDead())               // found a good one
+            if (!simp.isDead())               // found a good one
             {
-                current = icy;
+                current = simp;
                 checkTimes();
                 logmsg("times " + timediff + " / " + deviation);
                 return ;