質問するログイン新規登録

回答編集履歴

1

条件反転

2017/05/20 13:20

投稿

YouheiSakurai
YouheiSakurai

スコア6155

answer CHANGED
@@ -30,7 +30,7 @@
30
30
  self.stopping = Event()
31
31
 
32
32
  def run(self):
33
- while self.stopping.is_set():
33
+ while not self.stopping.is_set():
34
34
  time.sleep(1)
35
35
 
36
36