Browse Source

Correction typo et augmentation temps reessai apres erreur connection telephone

leo.viallon 4 years ago
parent
commit
b5cb39bf1b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      daemon/kannad-daemon.py

+ 2 - 2
daemon/kannad-daemon.py

@@ -55,7 +55,7 @@ while True:
55 55
 				reussite=True
56 56
 			except:
57 57
 				print("{} Kannad : Erreur de connexion au telephone".format(time.strftime("%a, %d %b %Y %H:%M:%S")))
58
-				time.sleep(1)
58
+				time.sleep(20)
59 59
 
60 60
 		
61 61
 		# Lecture SMS
@@ -132,11 +132,11 @@ while True:
132 132
 	
133 133
 	
134 134
 		sm.Terminate()
135
+	        time.sleep(kndconfig.dtrecieve)
135 136
 	except:
136 137
 		print("Erreur interne")
137 138
 		print "Exception in user code:"
138 139
 		print '-'*60
139 140
 		traceback.print_exc(file=sys.stdout)
140 141
 		print '-'*60
141
-	time.sleep(kndconfig.dtrecieve)
142 142