]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
let callers delete themselves on reload
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 16:12:06 +0000 (11:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 16:12:06 +0000 (11:12 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index 15c6d124f935e9c569d78896a31b34a19040edba..2ef5c7fca9a13f454de68d436eaa344b7bfe8ce6 100644 (file)
@@ -2247,7 +2247,7 @@ static void fifo_caller_del(const char *uuid)
        if (uuid) {
                sql = switch_mprintf("delete from fifo_callers where uuid='%q'", uuid);
        } else {
-               sql = switch_mprintf("delete from fifo_callers", uuid);
+               sql = switch_mprintf("delete from fifo_callers");
        }
 
        fifo_execute_sql(sql, globals.sql_mutex);
@@ -4251,7 +4251,6 @@ static switch_status_t load_config(int reload, int del_all)
                        }
                }
                switch_mutex_unlock(globals.mutex);
-               fifo_caller_del(NULL);
        }