usebeeline 0.1.129 → 0.1.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/usebeeline.mjs +8 -2
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -44,13 +44,13 @@ async function withKernelLock(key, work, waitMs = 6e5) {
|
|
|
44
44
|
}
|
|
45
45
|
const remaining = deadline - Date.now();
|
|
46
46
|
if (remaining <= 0)
|
|
47
|
-
throw new
|
|
47
|
+
throw new KernelLockBusyError();
|
|
48
48
|
await new Promise((done, reject) => {
|
|
49
49
|
const peer = createConnection2(address);
|
|
50
50
|
peer.resume();
|
|
51
51
|
const timer = setTimeout(() => {
|
|
52
52
|
peer.destroy();
|
|
53
|
-
reject(new
|
|
53
|
+
reject(new KernelLockBusyError());
|
|
54
54
|
}, remaining);
|
|
55
55
|
const finish = () => {
|
|
56
56
|
clearTimeout(timer);
|
|
@@ -62,9 +62,15 @@ async function withKernelLock(key, work, waitMs = 6e5) {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
var KernelLockBusyError;
|
|
65
66
|
var init_kernel_lock = __esm({
|
|
66
67
|
"apps/body/dist/kernel-lock.js"() {
|
|
67
68
|
"use strict";
|
|
69
|
+
KernelLockBusyError = class extends Error {
|
|
70
|
+
constructor() {
|
|
71
|
+
super("timed out waiting for Beeline installer owner");
|
|
72
|
+
}
|
|
73
|
+
};
|
|
68
74
|
}
|
|
69
75
|
});
|
|
70
76
|
|