From 5bb8ea7449be97f99695583b4f69f18ad7a4a0ab Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 10 Jul 2015 16:12:59 +1000 Subject: [PATCH] Remove one of two emits of events.DeviceConnected (ref #2034) --- cmd/syncthing/connections.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/syncthing/connections.go b/cmd/syncthing/connections.go index 7a376c29..9c64e5c7 100644 --- a/cmd/syncthing/connections.go +++ b/cmd/syncthing/connections.go @@ -177,10 +177,6 @@ next: if debugNet { l.Debugf("cipher suite: %04X in lan: %t", conn.ConnectionState().CipherSuite, !limit) } - events.Default.Log(events.DeviceConnected, map[string]string{ - "id": remoteID.String(), - "addr": conn.RemoteAddr().String(), - }) s.model.AddConnection(conn, protoConn) continue next