[asterisk-addons-commits] qwell: branch 1.4 r423 - /branches/1.4/res_config_mysql.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Mon Aug 13 10:56:03 CDT 2007


Author: qwell
Date: Mon Aug 13 10:56:03 2007
New Revision: 423

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=423
Log:
If we (re)connect, make sure we set the connect_time

Issue 10438

Modified:
    branches/1.4/res_config_mysql.c

Modified: branches/1.4/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/res_config_mysql.c?view=diff&rev=423&r1=422&r2=423
==============================================================================
--- branches/1.4/res_config_mysql.c (original)
+++ branches/1.4/res_config_mysql.c Mon Aug 13 10:56:03 2007
@@ -640,6 +640,7 @@
 		}
 
 		connected = 1;
+		connect_time = time(NULL);
 
 		if(mysql_select_db(&mysql, my_database) != 0) {
 			ast_log(LOG_WARNING, "MySQL RealTime: Unable to select database: %s. Still Connected (%d).\n", my_database, mysql_errno(&mysql));




More information about the asterisk-addons-commits mailing list