Browse Source

Save the label file before exiting query mode, in case something changed

Stefan Schmidt 6 years ago
parent
commit
a45be9bd71
1 changed files with 3 additions and 0 deletions
  1. 3 0
      code/Core/Controller.py

+ 3 - 0
code/Core/Controller.py

@@ -346,6 +346,9 @@ class Controller:
         readline.set_history_length(1000)
         readline.write_history_file(history_file)
 
+        # Save the label file, in case content has changed
+        self.label_manager.write_label_file(self.pcap_src_path)
+
     def create_statistics_plot(self, params: str, entropy: bool):
         """
         Plots the statistics to a file by using the given customization parameters.