console: Don't double create spice display

I can't reproduce, but a couple gentoo users have issues that this
fixes:

https://bugzilla.redhat.com/show_bug.cgi?id=981975
This commit is contained in:
Cole Robinson 2013-07-09 17:50:05 -04:00
parent 2ca9e364a5
commit 5f497cba41

View File

@ -536,7 +536,8 @@ class SpiceViewer(Viewer):
channel.connect_after("channel-event", self._main_channel_event_cb)
return
if type(channel) == SpiceClientGLib.DisplayChannel:
if (type(channel) == SpiceClientGLib.DisplayChannel and
not self.display):
channel_id = channel.get_property("channel-id")
if channel_id != 0: