]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Update switch_cpp.cpp Len-PGH-microseconds
authorLen <len.pgh@gmail.com>
Tue, 16 Apr 2024 17:15:16 +0000 (13:15 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 17:15:16 +0000 (13:15 -0400)
src/switch_cpp.cpp

index cd234a30e5d9411a899b55c0d81ae83bc8a772b4..c49006073f66d191096674d3ba23a7a63da97f5d 100644 (file)
@@ -106,7 +106,7 @@ SWITCH_DECLARE(Event *) EventConsumer::pop(int block, int timeout)
 
        if (block) {
                if (timeout > 0) {
-                       res = switch_queue_pop_timeout(events, &pop, (switch_interval_time_t) timeout * 1000); // millisec rather than microsec
+                       res = switch_queue_pop_timeout(events, &pop, (switch_interval_time_t) timeout * 100000); // microsececonds not milliseconds
                } else {
                        res = switch_queue_pop(events, &pop);
                }