aboutsummaryrefslogtreecommitdiff
path: root/tests/virtio-net-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-02-20 15:33:27 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-07 16:50:04 +0100
commit5b774fe5505dc7daad908f9f4b95e9e735c45c14 (patch)
tree068be487b96ffe6dfb076f22a9a30120aaea5ab4 /tests/virtio-net-test.c
parent3a75ef6a0fe397b0d36930415be6b123750a6afe (diff)
chardev-socket: do not blindly reset handlers when switching GMainContext
If the socket is connecting or connected, tcp_chr_update_read_handler will be called but it should not set the NetListener's callbacks again. Otherwise, tcp_chr_accept is invoked while the socket is in connected state and you get an assertion failure. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/virtio-net-test.c')
0 files changed, 0 insertions, 0 deletions