From Gregor Beck:

ERROR:capture.c:141:capture_start: assertion failed: (capture_opts->state == CAPTURE_STOPPED)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5126

svn path=/trunk/; revision=33906
This commit is contained in:
Anders Broman 2010-08-24 06:15:40 +00:00
parent 7c60d30dc5
commit f5f29d8931
1 changed files with 4 additions and 3 deletions

View File

@ -135,12 +135,13 @@ capture_start(capture_options *capture_opts)
gboolean ret;
GString *source = g_string_new("");
if (capture_opts->state != CAPTURE_STOPPED)
return FALSE;
capture_opts->state = CAPTURE_PREPARING;
/* close the currently loaded capture file */
cf_close(capture_opts->cf);
g_assert(capture_opts->state == CAPTURE_STOPPED);
capture_opts->state = CAPTURE_PREPARING;
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Capture Start ...");
g_string_printf(source, "%s", get_iface_description(capture_opts));