From fcf9dc9866ed7cfea33bae78a3bc0bb0389a5e7a Mon Sep 17 00:00:00 2001 From: gerald Date: Mon, 6 Aug 2012 18:24:21 +0000 Subject: [PATCH] Don't call main_window_update() from capture_input_new_packets() on Windows. Otherwise we end up looping forever on a NULL event in main_window_update(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44283 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/capture.c b/capture.c index 765390278f..46304fc85a 100644 --- a/capture.c +++ b/capture.c @@ -430,7 +430,10 @@ capture_input_new_packets(capture_options *capture_opts, int to_read) } /* update the main window so we get events (e.g. from the stop toolbar button) */ + /* This causes a hang on Windows (see bug 7305). Do we need this on any platform? */ +#ifndef _WIN32 main_window_update(); +#endif if(capture_opts->show_info) capture_info_new_packets(to_read);