mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
fix: don't block message receiving even despite the ready state
This shouldn't be handled here. If both sides are following the protocol then there shouldn't be any messages before this side hasn't sent the ready answer. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e99a9f4855
commit
823b8e5ad5
1 changed files with 0 additions and 7 deletions
|
@ -44,10 +44,6 @@ export class MessageTransporter extends EventEmitter2<MessageEventPayloadMap> {
|
|||
return
|
||||
}
|
||||
|
||||
if (this.transportAdapter === undefined) {
|
||||
throw new Error('no transport adapter set')
|
||||
}
|
||||
|
||||
try {
|
||||
this.transportAdapter.send(content)
|
||||
} catch (error: unknown) {
|
||||
|
@ -87,9 +83,6 @@ export class MessageTransporter extends EventEmitter2<MessageEventPayloadMap> {
|
|||
this.processReadyAnswer()
|
||||
return
|
||||
}
|
||||
if (!this.isReady()) {
|
||||
return
|
||||
}
|
||||
this.emit(message.type, message)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue