Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-01-27 14:18:55 +00:00
parent eaa8e9880e
commit a9edcf4928

View File

@@ -1,4 +1,7 @@
from _ns3 import *
import atexit
atexit.register(Simulator.Destroy)
del atexit