mirror of
https://github.com/Yonle/bostr.git
synced 2025-11-19 10:26:34 +01:00
@@ -138,7 +138,7 @@ function newConn(addr) {
|
|||||||
reqLimit.set(subID, remainingEvents);
|
reqLimit.set(subID, remainingEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!remainingEvents) {
|
if (remainingEvents < 1) {
|
||||||
// Once there are no remaining event, Do the instructed above.
|
// Once there are no remaining event, Do the instructed above.
|
||||||
csess.get(cID)?.send(JSON.stringify(["EOSE", sID]));
|
csess.get(cID)?.send(JSON.stringify(["EOSE", sID]));
|
||||||
pendingEOSE.delete(subID);
|
pendingEOSE.delete(subID);
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ function newConn(addr, id) {
|
|||||||
reqLimit.set(subID, remainingEvents);
|
reqLimit.set(subID, remainingEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!remainingEvents) {
|
if (remainingEvents < 1) {
|
||||||
// Once there are no remaining event, Do the instructed above.
|
// Once there are no remaining event, Do the instructed above.
|
||||||
csess.get(id)?.send(JSON.stringify(["EOSE", data[1]]));
|
csess.get(id)?.send(JSON.stringify(["EOSE", data[1]]));
|
||||||
pendingEOSE.delete(subID);
|
pendingEOSE.delete(subID);
|
||||||
|
|||||||
Reference in New Issue
Block a user