From 69e3e5f3a4510e4883edecc78b5556d38cb61318 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 27 Apr 2015 16:13:04 -0400 Subject: Move LAN discovery from Messenger to friend_connection. --- toxcore/LAN_discovery.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toxcore/LAN_discovery.c') diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index bc020d87..dbce762e 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c @@ -336,3 +336,8 @@ void LANdiscovery_init(DHT *dht) { networking_registerhandler(dht->net, NET_PACKET_LAN_DISCOVERY, &handle_LANdiscovery, dht); } + +void LANdiscovery_kill(DHT *dht) +{ + networking_registerhandler(dht->net, NET_PACKET_LAN_DISCOVERY, NULL, NULL); +} -- cgit v1.2.3