From c1ab317f1b0374806dba8eacdeacc956ff89835a Mon Sep 17 00:00:00 2001 From: mjentsch Date: Wed, 31 Dec 2014 16:17:11 +0100 Subject: [PATCH] Error connection instead of reconnecting Reconnection attempts are expected to be handled by libpurple and not by the protocol plugin, so it is visible to the user when the connection is not working. --- tgp-net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tgp-net.c b/tgp-net.c index 24279ab..dc49408 100644 --- a/tgp-net.c +++ b/tgp-net.c @@ -349,6 +349,7 @@ static void restart_connection (struct connection *c) { } connection_data *conn = TLS->ev_base; + purple_connection_error_reason (conn->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, "Lost connection with server"); // c->prpl_data = purple_proxy_connect (conn->gc, conn->pa, c->ip, c->port, net_on_connected, c); }