diff options
Diffstat (limited to 'libdino/src/service/registration.vala')
-rw-r--r-- | libdino/src/service/registration.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdino/src/service/registration.vala b/libdino/src/service/registration.vala index 20ea6063..19eebb05 100644 --- a/libdino/src/service/registration.vala +++ b/libdino/src/service/registration.vala @@ -37,7 +37,7 @@ public class Register : StreamInteractionModule, Object{ if (connected_account.equals(account)) { ret = error.source; } - stream_interactor.disconnect_account(account); + stream_interactor.disconnect_account.begin(account); Idle.add((owned)callback); }); @@ -91,7 +91,7 @@ public class Register : StreamInteractionModule, Object{ yield; try { - stream.disconnect(); + yield stream.disconnect(); } catch (Error e) {} return ret; } @@ -130,7 +130,7 @@ public class Register : StreamInteractionModule, Object{ form = yield stream.get_module(Xep.InBandRegistration.Module.IDENTITY).get_from_server(stream, jid); } try { - stream.disconnect(); + yield stream.disconnect(); } catch (Error e) {} return form; |