diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-06 19:41:45 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-06 19:41:45 +0000 |
commit | 58c72b26556756c0eaeeada1c81efd7acce14443 (patch) | |
tree | 3382449dbaf9eb9e0621437bf45a755a73f3be5e /capture.c | |
parent | cb8a103148de16363f1fc5ace1e56e0af6439c20 (diff) |
we can even get error messages while we are capturing (e.g. when a network cable is unplugged)
problem found by Joerg Mayer
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16704 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -359,17 +359,17 @@ capture_input_drops(capture_options *capture_opts, int dropped) } -/* Capture child told us, that an error has occurred while starting the capture. */ +/* Capture child told us, that an error has occurred while starting/running the capture. */ void capture_input_error_message(capture_options *capture_opts, char *error_message) { g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Error message from child: \"%s\"", error_message); - g_assert(capture_opts->state == CAPTURE_PREPARING); + g_assert(capture_opts->state == CAPTURE_PREPARING || capture_opts->state == CAPTURE_RUNNING); simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_message); - /* the capture child will close the sync_pipe, nothing to do for now */ + /* the capture child will close the sync_pipe if required, nothing to do for now */ } |