File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,15 @@ def draw_timer_callback(tmr):
188
188
drawCallback (False ) # Prepare draw
189
189
190
190
newDrawCallbacks = drawCallbacks
191
- for cb in drawCallbacks :
191
+ for i in range (0 , len (drawCallbacks )):
192
+ cb = drawCallbacks [i ]
192
193
rqi = 0
193
194
try :
194
195
[rqi , space_used ] = cb (y )
195
196
y = y - space_used
196
197
except BaseException as msg :
197
198
print ("[SERVICES] Exception in service draw: " , msg )
198
- newDrawCallbacks .pop (cb )
199
+ newDrawCallbacks .pop (i )
199
200
continue
200
201
if rqi > 0 and rqi < requestedInterval :
201
202
# Service wants to loop again in rqi seconds
@@ -237,4 +238,3 @@ def force_draw(disableTimer):
237
238
y = y - space_used
238
239
except BaseException as msg :
239
240
print ("[SERVICES] Exception in service draw: " , msg )
240
- newDrawCallbacks .pop (cb )
You can’t perform that action at this time.
0 commit comments