aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-02-13 16:13:37 +0100
committerfiaxh <git@lightrise.org>2019-02-13 16:14:16 +0100
commitd668e0158df40e1bb1ea00ab72fac9d0e95e8bd9 (patch)
treebee26f616b6696c053f23200547e82c3c281a900 /libdino/src/service
parent6613f3f05a548bb3b91d03becbaa694379ecdde4 (diff)
downloaddino-d668e0158df40e1bb1ea00ab72fac9d0e95e8bd9.tar.gz
dino-d668e0158df40e1bb1ea00ab72fac9d0e95e8bd9.zip
Fix runtime criticals (and compiler warnings)
fixes #520
Diffstat (limited to 'libdino/src/service')
-rw-r--r--libdino/src/service/connection_manager.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/connection_manager.vala b/libdino/src/service/connection_manager.vala
index 977fc732..ad846ba2 100644
--- a/libdino/src/service/connection_manager.vala
+++ b/libdino/src/service/connection_manager.vala
@@ -232,7 +232,7 @@ public class ConnectionManager : Object {
private void check_reconnect(Account account) {
bool acked = false;
- DateTime? last_activity_was = connections[account].last_activity != null ? connections[account].last_activity : null;
+ DateTime? last_activity_was = connections[account].last_activity;
XmppStream stream = connections[account].stream;
stream.get_module(Xep.Ping.Module.IDENTITY).send_ping(stream, account.bare_jid.domain_jid, () => {