diff options
-rw-r--r-- | nfvbench/service_chain.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nfvbench/service_chain.py b/nfvbench/service_chain.py index 104cfb4..0a5fd13 100644 --- a/nfvbench/service_chain.py +++ b/nfvbench/service_chain.py @@ -134,5 +134,7 @@ class ServiceChain(object): return self.stats_manager.get_version() def close(self): - self.stage_manager.close() - self.stats_manager.close() + if self.stage_manager: + self.stage_manager.close() + if self.stats_manager: + self.stats_manager.close() |