fixes destruction of actors in tutorial.py

This commit is contained in:
Jacopo Bartiromo 2020-04-16 11:28:24 +02:00 committed by bernat
parent 0b0ca7ea4c
commit 3fcc90585e
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ def main():
finally:
print('destroying actors')
for actor in actor_list:
actor.destroy()
camera.destroy()
client.apply_batch([carla.command.DestroyActor(x) for x in actor_list])
print('done.')