summaryrefslogtreecommitdiffhomepage
path: root/device/send.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-21 11:46:54 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-21 11:46:54 +0200
commit47b02c618bcd4f65726bc2c57538296e430a842c (patch)
tree007d0cb006c7ef9f26214325bcccf03067cc9a32 /device/send.go
parentfd23c66fcdc6b105bda2aea24f595b9c356c3670 (diff)
device: remove dead error reporting code
Diffstat (limited to 'device/send.go')
-rw-r--r--device/send.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/device/send.go b/device/send.go
index c4aa5b9..72633be 100644
--- a/device/send.go
+++ b/device/send.go
@@ -220,10 +220,7 @@ func (device *Device) SendHandshakeCookie(initiatingElem *QueueHandshakeElement)
writer := bytes.NewBuffer(buff[:0])
binary.Write(writer, binary.LittleEndian, reply)
device.net.bind.Send(writer.Bytes(), initiatingElem.endpoint)
- if err != nil {
- device.log.Error.Println("Failed to send cookie reply:", err)
- }
- return err
+ return nil
}
func (peer *Peer) keepKeyFreshSending() {