WIP catch IOError

This commit is contained in:
Xavier Del Campo Romero 2023-10-09 21:59:22 +02:00
parent 353329bbea
commit 946d113aad
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ public class ConnectionManager : Object {
if (stream != null) {
stream.detach_modules();
yield stream.disconnect();
try {
yield stream.disconnect();
} catch (IOError e) {
warning(@"caught IOError $(e.code)");
}
}
stream = null;
uuid = Xmpp.random_uuid();