Changeset 3336 for pjproject/trunk/pjlib/src/pj/activesock.c
- Timestamp:
- Oct 11, 2010 10:59:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/activesock.c
r3317 r3336 30 30 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 31 31 # include <CFNetwork/CFNetwork.h> 32 33 static pj_bool_t ios_bg_support = PJ_TRUE; 32 34 #endif 33 35 … … 134 136 static void activesock_create_iphone_os_stream(pj_activesock_t *asock) 135 137 { 136 if ( asock->bg_setting && asock->stream_oriented) {138 if (ios_bg_support && asock->bg_setting && asock->stream_oriented) { 137 139 activesock_destroy_iphone_os_stream(asock); 138 140 … … 164 166 else 165 167 activesock_destroy_iphone_os_stream(asock); 168 } 169 170 PJ_DEF(void) pj_activesock_enable_iphone_os_bg(pj_bool_t val) 171 { 172 ios_bg_support = val; 166 173 } 167 174 #endif
Note: See TracChangeset
for help on using the changeset viewer.