mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 12:14:13 +00:00
use channel flag to tell when to read from channel during some stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1590 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1212c95e55
commit
fe32a839df
6 files changed
+29
-29
No files matched your search
@@ -743,6 +743,7 @@ static void *switch_core_service_thread(switch_thread_t *thread, void *obj)
|
||||
channel = switch_core_session_get_channel(session);
|
||||
assert(channel != NULL);
|
||||
|
||||
switch_channel_set_flag(channel, CF_SERVICE);
|
||||
while (data->running > 0) {
|
||||
switch (switch_core_session_read_frame(session, &read_frame, -1, stream_id)) {
|
||||
case SWITCH_STATUS_SUCCESS:
|
||||
@@ -755,6 +756,7 @@ static void *switch_core_service_thread(switch_thread_t *thread, void *obj)
|
||||
}
|
||||
}
|
||||
|
||||
switch_channel_clear_flag(channel, CF_SERVICE);
|
||||
data->running = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user