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