Skip to content

Commit 1fba85e

Browse files
committed
Avoid unnecessary main browser check. NFC.
emscripten_check_blocking_allowed will do this for us.
1 parent f78d601 commit 1fba85e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

system/lib/libc/musl/src/thread/pthread_cond_timedwait.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ int __pthread_cond_timedwait(pthread_cond_t *restrict c, pthread_mutex_t *restri
7777

7878
#ifdef __EMSCRIPTEN__
7979
// TODO: Optimize this away in MINIMAL_RUNTIME.
80-
if (pthread_self() == emscripten_main_browser_thread_id()) {
81-
emscripten_check_blocking_allowed();
82-
}
80+
emscripten_check_blocking_allowed();
8381
#endif
8482

8583
if ((m->_m_type&15) && (m->_m_lock&INT_MAX) != __pthread_self()->tid)

0 commit comments

Comments
 (0)