summaryrefslogtreecommitdiffstats
path: root/beacon
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-05-28 07:03:47 +0200
committerJakob Borg <jakob@nym.se>2014-05-28 07:03:47 +0200
commit7745ed34d3dd3acdb08852a48510f87e76bf7fa8 (patch)
tree7cfd27ff4b473d137d966d14f38d3a465ec2a6eb /beacon
parent8fe546c4a2662d79d3068570d209e723588b002b (diff)
Don't stop discovery on send errors (fixes #240)
Diffstat (limited to 'beacon')
-rw-r--r--beacon/beacon.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/beacon/beacon.go b/beacon/beacon.go
index e8ab78bdd9..e2ae90352d 100644
--- a/beacon/beacon.go
+++ b/beacon/beacon.go
@@ -102,9 +102,7 @@ func (b *Beacon) writer() {
if debug {
l.Debugln(err)
}
- return
- }
- if debug {
+ } else if debug {
l.Debugf("sent %d bytes to %s", len(bs), dst)
}
}