~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Mattias Eriksson
  • Date: 2010-05-25 09:15:35 UTC
  • mto: This revision was merged to the branch mainline in revision 5259.
  • Revision ID: snaggen@acc.umu.se-20100525091535-yduavr8ygqdvs8rw
Make sure the loop.quit is run before raising the exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
    def _mount_done_cb(self, obj, res):
201
201
        try:
202
202
            obj.mount_enclosing_volume_finish(res)
 
203
            self.loop.quit()
203
204
        except gio.Error, e:
 
205
            self.loop.quit()
204
206
            raise errors.BzrError("Failed to mount the given location: " + str(e));
205
 
        finally:
206
 
            self.loop.quit()
207
207
 
208
208
    def _create_connection(self, credentials=None):
209
209
        if credentials is None: