mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-09 22:36:29 +00:00
server: Fix the order of the attach_stream() asserts
Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
55b9478b9c
commit
968d7df719
@ -263,8 +263,8 @@ static void attach_stream(DisplayChannel *display, Drawable *drawable, Stream *s
|
||||
DisplayChannelClient *dcc;
|
||||
RingItem *item, *next;
|
||||
|
||||
spice_assert(!drawable->stream && !stream->current);
|
||||
spice_assert(drawable && stream);
|
||||
spice_assert(!drawable->stream && !stream->current);
|
||||
stream->current = drawable;
|
||||
drawable->stream = stream;
|
||||
stream->last_time = drawable->creation_time;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user