]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3156 FS-3157 declinatio mortuus obfirmo!
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Mar 2011 17:36:27 +0000 (12:36 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Mar 2011 17:36:33 +0000 (12:36 -0500)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 5ec7ca9b7918b46a2e866c6bf6f6257c022ebdcc..f6a02623a7c3c2292f7e94f5a58d671e071abed0 100644 (file)
@@ -313,7 +313,7 @@ static void event_handler(switch_event_t *event)
                                const char *hval;
 
                                send = 0;
-
+                               
                                for (hp = l->filters->headers; hp; hp = hp->next) {
                                        if ((hval = switch_event_get_header(event, hp->name))) {
                                                const char *comp_to = hp->value;
@@ -357,8 +357,9 @@ static void event_handler(switch_event_t *event)
                                                }
                                        }
                                }
-                               switch_mutex_unlock(l->filter_mutex);
                        }
+
+                       switch_mutex_unlock(l->filter_mutex);
                }
 
                if (send && switch_test_flag(l, LFLAG_MYEVENTS)) {