connection_manager.vala: Use yield on disconnect()
This commit is contained in:
parent
2c292f16c8
commit
8cd96e0a14
|
@ -56,15 +56,15 @@ public class ConnectionManager : Object {
|
|||
public bool acked;
|
||||
|
||||
public Connection() {
|
||||
reset();
|
||||
reset.begin();
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
public async void reset() {
|
||||
acked = false;
|
||||
if (stream != null) {
|
||||
stream.detach_modules();
|
||||
|
||||
stream.disconnect.begin();
|
||||
yield stream.disconnect();
|
||||
}
|
||||
stream = null;
|
||||
uuid = Xmpp.random_uuid();
|
||||
|
|
Loading…
Reference in New Issue