Make sure sync_interface_stats_close calls sync_pipe_kill on all
platforms. This ham-fistedly fixes a delay when moving from the "Capture" item to the "Open" and "Learn" items on the welcome screen in the Qt version. svn path=/trunk/; revision=45475
This commit is contained in:
parent
d7c4e6ccf0
commit
552a9c6b1e
|
@ -1400,6 +1400,13 @@ sync_interface_stats_open(int *data_read_fd, int *fork_child, gchar **msg)
|
|||
int
|
||||
sync_interface_stats_close(int *read_fd, int *fork_child, gchar **msg)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
/*
|
||||
* Don't bother waiting for the child. sync_pipe_close_command
|
||||
* does this for us on Windows.
|
||||
*/
|
||||
sync_pipe_kill(*fork_child);
|
||||
#endif
|
||||
return sync_pipe_close_command(read_fd, NULL, fork_child, msg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue