home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / netscape / net / SSLCallbackNotifier.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  1.2 KB  |  37 lines

  1. package netscape.net;
  2.  
  3. class SSLCallbackNotifier extends Thread {
  4.    SSLSocketImpl sock;
  5.    public static boolean debug;
  6.  
  7.    SSLCallbackNotifier(SSLSocketImpl var1) {
  8.       this.sock = var1;
  9.  
  10.       try {
  11.          ((Thread)this).setDaemon(true);
  12.       } catch (IllegalThreadStateException var3) {
  13.          if (debug) {
  14.             System.err.println("exception: " + ((Throwable)var3).getMessage());
  15.             ((Throwable)var3).printStackTrace();
  16.          }
  17.  
  18.       }
  19.    }
  20.  
  21.    public void run() {
  22.       synchronized(this){}
  23.  
  24.       try {
  25.          while(true) {
  26.             try {
  27.                this.wait();
  28.                this.sock.doCallHandshakeCompletedListeners();
  29.             } catch (InterruptedException var4) {
  30.             }
  31.          }
  32.       } catch (Throwable var5) {
  33.          throw var5;
  34.       }
  35.    }
  36. }
  37.