From 055b6d7a8472298707ff18bfb9dba7f994cca832 Mon Sep 17 00:00:00 2001 From: jackjack-jj Date: Thu, 18 Apr 2013 14:21:59 +0300 Subject: [PATCH] minors changes to update function --- pywallet.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pywallet.py b/pywallet.py index 798763a..5153037 100755 --- a/pywallet.py +++ b/pywallet.py @@ -4258,18 +4258,17 @@ def update_pyw(): filout.write(dl) filout.close() thread.start_new_thread(restart_pywallet, ()) - return "Updated, please wait..." + return "Updated, restarting..." else: return "Problem when downloading new version ("+md5_2(dl)+"/"+md5_last_pywallet[1]+")" def restart_pywallet(): - time.sleep(1) thread.start_new_thread(start_pywallet, ()) - time.sleep(0.3) + time.sleep(2) reactor.stop() def start_pywallet(): - a=Popen("python "+pyw_path+"/"+pyw_filename+" --web --port "+str(webport)+" --wait 2", shell=True, bufsize=-1, stdout=PIPE).stdout + a=Popen("python "+pyw_path+"/"+pyw_filename+" --web --port "+str(webport)+" --wait 3", shell=True, bufsize=-1, stdout=PIPE).stdout a.close()