##// END OF EJS Templates
BF: Make sure to stop timer, otherwise poll function may continue to get called...
Paul McCarthy -
Show More
@@ -177,11 +177,13 b' def inputhook_wxphoenix(context):'
177 177
178 178 # Use a wx.Timer to periodically check whether input is ready - as soon as
179 179 # it is, we exit the main loop
180 timer = wx.Timer()
181
180 182 def poll(ev):
181 183 if context.input_is_ready():
184 timer.Stop()
182 185 app.ExitMainLoop()
183 186
184 timer = wx.Timer()
185 187 timer.Start(poll_interval)
186 188 timer.Bind(wx.EVT_TIMER, poll)
187 189
General Comments 0
You need to be logged in to leave comments. Login now