Make sure that plugin tap listeners get registered before the non-plugin tap listeners

that's because stat trees are registered as tap listeners by either
gtk/stats_tree_stat.c or tap-stats_tree.c


svn path=/trunk/; revision=13545
This commit is contained in:
Luis Ontanon 2005-02-28 00:55:49 +00:00
parent 693f9f3838
commit 5319cabe88
2 changed files with 10 additions and 2 deletions

View File

@ -1629,8 +1629,12 @@ main(int argc, char *argv[])
/* Register all tap listeners; we do this before we parse the arguments,
as the "-z" argument can specify a registered tap. */
register_all_tap_listeners();
/* we register the plugin taps before the other taps because
stats_tree taps plugins will be registered as tap listeners
by stats_tree_stat.c and need to registered before that */
register_all_plugin_tap_listeners();
register_all_tap_listeners();
splash_update(splash_win, "Loading module preferences ...");

View File

@ -699,8 +699,12 @@ main(int argc, char *argv[])
/* Register all tap listeners; we do this before we parse the arguments,
as the "-z" argument can specify a registered tap. */
register_all_tap_listeners();
/* we register the plugin taps before the other taps because
stats_tree taps plugins will be registered as tap listeners
by stats_tree_stat.c and need to registered before that */
register_all_plugin_tap_listeners();
register_all_tap_listeners();
/* Now register the preferences for any non-dissector modules.
We must do that before we read the preferences as well. */