removing doMethodLater task not working

I can’t figure out what the heck I could be doing wrong.

print self.base.taskMgr
self.base.removeTask('wait_for_fix')
print 'should not see wait_for_fix task'
print self.base.taskMgr

Output:

AsyncTaskManager TaskManager

  Task chain "default"
   Task                             sleep(s)   dt(ms)      avg      max   sort
  -----------------------------------------------------------------------------
   resetPrevTransform                             0.0      0.0      0.0    -51
   dataLoop                                       0.0      0.0      0.0    -50
   eventManager                                   0.0      0.0      0.3      0
   fake_eye                                       0.0      0.0      0.0      0
   ivalLoop                                       0.0      0.0     10.4     20
   collisionLoop                                  0.0      0.0      0.0     30
   garbageCollectStates                           0.0      0.0      0.0     46
   igLoop                                         0.2      0.2      3.3     50
   audioLoop                                      0.0      0.0      0.0     60
   auto_cleanup                          0.5                                 0
   wait_for_fix                          0.7                                 0

should not see wait_for_fix task
AsyncTaskManager TaskManager

  Task chain "default"
   Task                             sleep(s)   dt(ms)      avg      max   sort
  -----------------------------------------------------------------------------
   resetPrevTransform                             0.0      0.0      0.0    -51
   dataLoop                                       0.0      0.0      0.0    -50
   eventManager                                   0.0      0.0      0.3      0
   fake_eye                                       0.0      0.0      0.0      0
   ivalLoop                                       0.0      0.0     10.4     20
   collisionLoop                                  0.0      0.0      0.0     30
   garbageCollectStates                           0.0      0.0      0.0     46
   igLoop                                         0.2      0.2      3.3     50
   audioLoop                                      0.0      0.0      0.0     60
   auto_cleanup                          0.5                                 0
   wait_for_fix                          0.7                                 0

Why is it still there? So confused…

thanks,
Maria

Nothing like posting on a public forum to see what you did wrong.

self.base.taskMgr.remove(‘my task’)
not
self.base.removeTask(‘my task’)

I have no idea where I got that from, or why it doesn’t give me an error.

cheers,
Maria

Huh, it seems that DirectObject (from which ShowBase inherits) defines a removeTask method, but it does something very different.