Skip to content

Commit b18135c

Browse files
committed
Try synchronous fetches
1 parent e0f2cb4 commit b18135c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emulator-patches/fetch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ static void fetch_range_async(const char* url, size_t first_byte, size_t size,
163163
emscripten_fetch_attr_init(&fetch_attributes);
164164

165165
strcpy(fetch_attributes.requestMethod, "GET");
166-
fetch_attributes.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY;
166+
// ...?
167+
fetch_attributes.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY | EMSCRIPTEN_FETCH_SYNCHRONOUS;
167168

168169
if (ctx->range) {
169170
const char** headers = malloc(sizeof(char*) * 3);

0 commit comments

Comments
 (0)