blinking lights for xmas presence

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6849 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-18 01:12:50 +00:00
parent cc30c441b9
commit 5355075c60
11 changed files with 1037 additions and 842 deletions

View File

@@ -84,11 +84,12 @@ SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, s
while(--sane > 0) {
ret = sqlite3_exec(db, sql, callback, data, errmsg);
if (ret == SQLITE_BUSY || ret == SQLITE_LOCKED) {
switch_safe_free(*errmsg);
switch_yield(1000);
continue;
if (sane > 1) {
switch_safe_free(*errmsg);
switch_yield(1000);
continue;
}
} else {
break;
}