Handle keep alive in signal server

This commit is contained in:
Zoltan Papp
2023-03-30 14:31:52 +02:00
parent a6431e053b
commit 551455f314
5 changed files with 25 additions and 11 deletions

View File

@@ -888,7 +888,6 @@ func (e *Engine) receiveSignalEvents() {
err := e.signal.Receive(func(msg *sProto.Message) error {
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()
conn := e.peerConns[msg.Key]
if conn == nil {
return fmt.Errorf("wrongly addressed message %s", msg.Key)