serial: Don't fail when reconnecting to existing char device.

This commit is contained in:
Cole Robinson 2009-07-28 09:32:18 -04:00
parent 7277d28c46
commit a0ac5b3b63

View File

@ -86,8 +86,9 @@ class vmmSerialConsole(gtk.HBox):
if port == self.target_port:
if path != self.ttypath:
logging.debug("Serial console '%s' path changed to %s."
% (self.target_port, self.ttypath))
return path
% (self.target_port, path))
return path
logging.debug("No serial devices found for serial console '%s'." %
self.target_port)