net/colo.c: No need to track conn_list for filter-rewriter
Filter-rewriter no need to track connection in conn_list. This patch fix the glib g_queue_is_empty assertion when COLO guest keep a lot of network connection. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
a18d436954
commit
94c36c4875
|
@ -218,7 +218,7 @@ Connection *connection_get(GHashTable *connection_track_table,
|
||||||
/*
|
/*
|
||||||
* clear the conn_list
|
* clear the conn_list
|
||||||
*/
|
*/
|
||||||
while (!g_queue_is_empty(conn_list)) {
|
while (conn_list && !g_queue_is_empty(conn_list)) {
|
||||||
connection_destroy(g_queue_pop_head(conn_list));
|
connection_destroy(g_queue_pop_head(conn_list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue