diff options
author | Alberto Mardegan <alberto.mardegan@nokia.com> | 2009-01-07 10:43:16 +0200 |
---|---|---|
committer | Alberto Mardegan <alberto.mardegan@nokia.com> | 2009-01-12 11:05:44 +0200 |
commit | eeb6932337143b0672e4f3e42efc47476bb02273 (patch) | |
tree | c5a7cbddd3a642156bcaa91137653dcdfe326d30 | |
parent | 6964219472037189da42a485ccb7b187efa89b94 (diff) | |
download | telepathy-mission-control-eeb6932337143b0672e4f3e42efc47476bb02273.tar.gz |
Define initial reconnection time
Create a macro for the initial reconnection time, and set it to 1 second.
-rw-r--r-- | src/mcd-connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mcd-connection.c b/src/mcd-connection.c index c96afc8e..83d0e0c9 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -64,6 +64,7 @@ #include "_gen/cli-Connection_Interface_Contact_Capabilities.h" #include "_gen/cli-Connection_Interface_Contact_Capabilities-body.h" +#define INITIAL_RECONNECTION_TIME (1 * 1000) /* 1 second */ #define MAX_REF_PRESENCE 4 #define LAST_MC_PRESENCE (TP_CONNECTION_PRESENCE_TYPE_BUSY + 1) @@ -1053,7 +1054,7 @@ on_connection_status_changed (TpConnection *tp_conn, GParamSpec *pspec, mcd_account_set_connection_status (priv->account, conn_status, conn_reason); _mcd_connection_get_self_handle (connection); - priv->reconnect_interval = 30 * 1000; /* reset it to 30 seconds */ + priv->reconnect_interval = INITIAL_RECONNECTION_TIME; } break; case TP_CONNECTION_STATUS_DISCONNECTED: @@ -1860,7 +1861,7 @@ mcd_connection_init (McdConnection * connection) priv->abort_reason = TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED; - priv->reconnect_interval = 30 * 1000; /* 30 seconds */ + priv->reconnect_interval = INITIAL_RECONNECTION_TIME; priv->auto_reconnect = TRUE; } |