Fix repository delte notification and CLOSE buffering
This commit is contained in:
@@ -30,10 +30,15 @@ export class Connection extends Emitter {
|
||||
|
||||
const [verb, ...extra] = asMessage(message)
|
||||
|
||||
if (['AUTH', 'CLOSE'].includes(verb)) {
|
||||
if (verb === 'AUTH') {
|
||||
return false
|
||||
}
|
||||
|
||||
// Only close reqs that have been sent
|
||||
if (verb === 'CLOSE') {
|
||||
return !this.meta.pendingRequests.has(extra[0])
|
||||
}
|
||||
|
||||
// Allow relay requests through
|
||||
if (verb === 'EVENT' && extra[0].kind === 28934) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user