mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Don't crash when a client disconnects while there were pending writes
This commit is contained in:
parent
f78ad47407
commit
d37adccfa7
@ -1894,7 +1894,7 @@ static void reds_main_event(int fd, int event, void *data)
|
||||
RedsOutgoingData *outgoing = &reds->outgoing;
|
||||
if (reds_send_data()) {
|
||||
reds_push();
|
||||
if (!outgoing->item) {
|
||||
if (!outgoing->item && reds->peer) {
|
||||
core->watch_update_mask(reds->peer->watch,
|
||||
SPICE_WATCH_EVENT_READ);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user