Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
from _ns3 import *
|
||||
|
||||
import atexit
|
||||
atexit.register(Simulator.Destroy)
|
||||
del atexit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user