summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Barisione <marco@barisione.org>2011-08-01 14:20:34 +0100
committerMarco Barisione <marco@barisione.org>2011-08-03 14:49:11 +0100
commit18b99be3be0c0b3ed31e52c25ac545ad6152e85d (patch)
tree68e93a2f2edb7ab4be4938986e0dfe218e350157
parent77155451e3145d0c856d4bd3d2e2ae53923463ad (diff)
Update the Wocky snaphost and adapt the changes in WockyPing
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
m---------lib/ext/wocky0
-rw-r--r--src/connection.c5
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/ext/wocky b/lib/ext/wocky
-Subproject 4a16e1cb80ad124726f7e517b0d141bf5b92178
+Subproject 5ba6fef79f37d1dd1f112db12e539fc8e74c23e
diff --git a/src/connection.c b/src/connection.c
index f76b91af7..53914a5e9 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -1836,7 +1836,10 @@ connector_connected (GabbleConnection *self,
self->session = wocky_session_new_with_connection (conn, jid);
priv->porter = wocky_session_get_porter (self->session);
- priv->pinger = wocky_ping_new (priv->porter, priv->keepalive_interval);
+
+ g_assert (WOCKY_IS_C2S_PORTER (priv->porter));
+ priv->pinger = wocky_ping_new (WOCKY_C2S_PORTER (priv->porter),
+ priv->keepalive_interval);
g_signal_connect (priv->porter, "remote-closed",
G_CALLBACK (remote_closed_cb), self);