connection: Drop unused open() argument

This commit is contained in:
Cole Robinson
2015-04-10 15:00:34 -04:00
parent 6071ab0ea4
commit 629627b663
+4 -10
View File
@@ -886,21 +886,15 @@ class vmmConnection(vmmGObject):
def _cleanup(self):
self.close()
def open(self, sync=False):
def open(self):
if not self.is_disconnected():
return
self._change_state(self._STATE_CONNECTING)
if sync:
logging.debug("Opening connection synchronously: %s",
self.get_uri())
self._open_thread()
else:
logging.debug("Scheduling background open thread for " +
self.get_uri())
self._start_thread(self._open_thread,
"Connect %s" % self.get_uri())
logging.debug("Scheduling background open thread for " +
self.get_uri())
self._start_thread(self._open_thread, "Connect %s" % self.get_uri())
def _do_creds_password(self, creds):
try: