1 2 5 public final class ShutDownThread extends Thread { 6 7 private static final int ONE_MINUTE=1000; 8 9 10 public ShutDownThread(){ 11 super("Shut Down Thread"); 12 } 13 14 public void run(){ 15 try{ 16 if(WhisperIM.MainWindow.intentionalQuit){ 17 return; } 19 if(WhisperIM.KEYPAIR!=null){ 20 try{ 21 WhisperIM.KEYPAIR.privateKey().wipe(); 22 WhisperIM.KEYPAIR=null; 23 } 24 catch(Exception e1){ 25 } 27 } 28 if(WhisperIM.MainWindow.keycachekey!=null){ 29 try{ 30 whisper.Util.wipe(WhisperIM.MainWindow.keycachekey); 31 } 32 catch(Exception e2){ 33 } 35 } 36 if(WhisperIM.MainWindow.Conn!=null && WhisperIM.MainWindow.Conn.isConnected()){ 37 try{ 38 WhisperIM.MainWindow.Conn.close(); 39 } 40 catch(Exception e3){ 41 } 43 } 44 try{ 46 sleep(2000); 47 } 48 catch(Exception e4){ 49 return; 50 } 51 } 52 catch(Throwable t){ 53 return; 54 } 55 } 56 } | Popular Tags |