mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Fix bugs
This commit is contained in:
parent
e97f75cad5
commit
f86946c6df
@ -166,9 +166,13 @@ func protocolConnectionHandler(tcpConn net.Conn, config *tls.Config) {
|
||||
// Potentially closing a second time.
|
||||
close(outbox)
|
||||
conn.Close()
|
||||
outboxesMut.Lock()
|
||||
delete(outboxes, id)
|
||||
outboxesMut.Unlock()
|
||||
// Only delete the outbox if the client join, as it migth be a
|
||||
// lookup request coming from the same client.
|
||||
if joined {
|
||||
outboxesMut.Lock()
|
||||
delete(outboxes, id)
|
||||
outboxesMut.Unlock()
|
||||
}
|
||||
return
|
||||
case <-pingTicker.C:
|
||||
if !joined {
|
||||
|
Loading…
Reference in New Issue
Block a user