libpurple/protocols/myspace/myspace.c

branch
soc.2007.msimprpl
changeset 18029
48e7b6d97f1f
parent 18028
85ed2582be94
child 18031
4ebc87fe43d9
equal deleted inserted replaced
18028:85ed2582be94 18029:48e7b6d97f1f
1387 1387
1388 if (!msim_send(session, 1388 if (!msim_send(session,
1389 "status", MSIM_TYPE_INTEGER, status_code, 1389 "status", MSIM_TYPE_INTEGER, status_code,
1390 "sesskey", MSIM_TYPE_INTEGER, session->sesskey, 1390 "sesskey", MSIM_TYPE_INTEGER, session->sesskey,
1391 "statstring", MSIM_TYPE_STRING, g_strdup(""), 1391 "statstring", MSIM_TYPE_STRING, g_strdup(""),
1392 "locstring", MSIM_TYPE_STRING, g_strdup(""))) 1392 "locstring", MSIM_TYPE_STRING, g_strdup(""),
1393 NULL))
1393 { 1394 {
1394 purple_debug_info("msim", "msim_set_status: failed to set status"); 1395 purple_debug_info("msim", "msim_set_status: failed to set status");
1395 } 1396 }
1396 1397
1397 } 1398 }
1610 1611
1611 delta = time(NULL) - session->last_comm; 1612 delta = time(NULL) - session->last_comm;
1612 purple_debug_info("msim", "msim_check_alive: delta=%d\n", delta); 1613 purple_debug_info("msim", "msim_check_alive: delta=%d\n", delta);
1613 if (delta >= MSIM_KEEPALIVE_INTERVAL) 1614 if (delta >= MSIM_KEEPALIVE_INTERVAL)
1614 { 1615 {
1615 errmsg = g_strdup_printf(_("Connection to server lost (no data received within %d seconds)"), delta); 1616 errmsg = g_strdup_printf(_("Connection to server lost (no data received within %d seconds)"), (int)delta);
1616 1617
1617 purple_debug_info("msim", "msim_check_alive: %s > interval of %d, presumed dead\n", 1618 purple_debug_info("msim", "msim_check_alive: %s > interval of %d, presumed dead\n",
1618 errmsg, MSIM_KEEPALIVE_INTERVAL); 1619 errmsg, MSIM_KEEPALIVE_INTERVAL);
1619 purple_connection_error(session->gc, errmsg); 1620 purple_connection_error(session->gc, errmsg);
1620 1621

mercurial