@volter/supercode-teams 0.3.134 → 0.3.135
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/mail/relay.mjs +3 -2
- package/mail/send.mjs +1 -1
- package/package.json +1 -1
package/mail/relay.mjs
CHANGED
|
@@ -372,8 +372,9 @@ export class Relays {
|
|
|
372
372
|
* by its name. One send at a time per relay; a relay whose process is proven dead is started again once.
|
|
373
373
|
*/
|
|
374
374
|
/** Whether `sender`'s relay still holds a send queued (its queue file, written within SEND_TIMEOUT_MS twice over): a
|
|
375
|
-
* relay runtime outlives a daemon that ended mid-send and may still make it.
|
|
376
|
-
|
|
375
|
+
* relay runtime outlives a daemon that ended mid-send and may still make it. (Not `sending`: that is the field of
|
|
376
|
+
* sends in progress, which would shadow it.) */
|
|
377
|
+
queued(sender, senderName) {
|
|
377
378
|
try { return Date.now() - statSync(this.spec(sender, senderName).queue).mtimeMs < 2 * SEND_TIMEOUT_MS; } catch { return false; }
|
|
378
379
|
}
|
|
379
380
|
|
package/mail/send.mjs
CHANGED
|
@@ -337,7 +337,7 @@ export class MailSend {
|
|
|
337
337
|
if (this.relaying.has(key)) throw unanswered('its relay send is still running here');
|
|
338
338
|
const earlier = this.store.hasWake(to, handed.id) ? this.store.wakeState(to, handed.id).handover_at_ms : null;
|
|
339
339
|
if (earlier != null) {
|
|
340
|
-
if (this.relays.
|
|
340
|
+
if (this.relays.queued(handed.from, handed.from_name)) throw unanswered('its relay may still be making it');
|
|
341
341
|
let landed = false;
|
|
342
342
|
try { landed = await this.relays.landed(door.session.address.split(':').slice(3).join(':'), handed.id, handed.from); } catch { /* unread: hand it over */ }
|
|
343
343
|
if (landed) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.135",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
|
|
6
6
|
"license": "MIT",
|