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:
Francois Gouget 2016-03-03 21:22:30 +01:00 committed by Jonathon Jongsma
parent 55b9478b9c
commit 968d7df719

View File

@ -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;