summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:48:33 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:48:33 +0100
commit29894cc8d155188e057451cf58cc686a9ad0d1c6 (patch)
tree448387bd59de6562f5e92308018945e85610d4f5 /src
parent96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06 (diff)
downloadfastd-29894cc8d155188e057451cf58cc686a9ad0d1c6.tar
fastd-29894cc8d155188e057451cf58cc686a9ad0d1c6.zip
peer: remove dead code in fastd_peer_reset_socket()
Diffstat (limited to 'src')
-rw-r--r--src/peer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/peer.c b/src/peer.c
index 0fbda1a..75475ba 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -251,9 +251,6 @@ void fastd_peer_reset_socket(fastd_peer_t *peer) {
else
peer->sock = fastd_socket_open(peer, AF_INET6);
}
-
- if (!peer->sock || !fastd_peer_is_socket_dynamic(peer))
- return;
}
/** Schedules the peer maintenance task (or removes the scheduled task if there's nothing to do) */