Skip to content

Commit

Permalink
fix crashed
Browse files Browse the repository at this point in the history
  • Loading branch information
hjc981024 committed Mar 26, 2018
1 parent 688ed47 commit 874b993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bwh_ctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def start_event(self):
self.start_lab.setText("Start failed, error code = %d"%(self.start_data['error']))
self.start_lab.setVisible(True)
def stop_event(self):
self.timer.timeout.connect(lambda:self.label_event(self,self.stop_lab))
self.timer.timeout.connect(lambda:self.label_event(self.stop_lab))
self.timer.start(10*1000)
self.stop_data = requests.get(self.TAR+'stop',headers=self.head,params=self.web_payload,timeout=500).json()
if(self.stop_data['error'] == 0):
Expand All @@ -100,7 +100,7 @@ def stop_event(self):
self.stop_lab.setText("Stop failed, error code = %d"%(stop_data['error']))
self.stop_lab.setVisible(True)
def kill_event(self):
self.timer.timeout.connect(lambda:self.label_event(self,self.kill_lab))
self.timer.timeout.connect(lambda:self.label_event(self.kill_lab))
self.timer.start(10*1000)
self.kill_data = requests.get(self.TAR+'kill',headers=self.head,params=self.web_payload,timeout=500).json()
if(self.restart_data['error'] == 0):
Expand Down

0 comments on commit 874b993

Please sign in to comment.