diff options
m--------- | lib/ext/wocky | 0 | ||||
-rw-r--r-- | src/connection.c | 5 |
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 f76b91af..53914a5e 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); |