Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 8c412f0

Browse files
author
Daniel Brain
committed
Do not timeout for ready and method messages
1 parent d3e7312 commit 8c412f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/methods.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function deserializeMethod(source, origin, obj) {
100100
name: obj.__name__,
101101
args
102102

103-
}, { domain: origin }).then(({ data }) => {
103+
}, { domain: origin, timeout: Infinity }).then(({ data }) => {
104104

105105
log.debug('Got foreign method result', obj.__name__, data.result);
106106
return data.result;

src/lib/ready.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function initOnReady() {
2828
let parent = getAncestor();
2929

3030
if (parent) {
31-
send(parent, CONSTANTS.POST_MESSAGE_NAMES.READY, {}, { domain: CONSTANTS.WILDCARD }).catch(err => {
31+
send(parent, CONSTANTS.POST_MESSAGE_NAMES.READY, {}, { domain: CONSTANTS.WILDCARD, timeout: Infinity }).catch(err => {
3232
log.debug(err.stack || err.toString());
3333
});
3434
}

0 commit comments

Comments
 (0)