Change resolution to use a single resolve thread, and to clean up after itself.

This commit is contained in:
Ian Gulliver
2016-02-23 11:53:17 -08:00
parent c6a2150a7d
commit 289dcdbb54
4 changed files with 73 additions and 50 deletions

View File

@@ -14,6 +14,7 @@
#include "peer.h"
#include "rand.h"
#include "receive.h"
#include "resolve.h"
#include "send.h"
#include "server.h"
#include "stats.h"
@@ -100,6 +101,7 @@ int main(int argc, char *argv[]) {
hex_init();
rand_init();
resolve_init();
server_init();
wakeup_init();
peer_init();
@@ -117,6 +119,7 @@ int main(int argc, char *argv[]) {
peer_loop();
rand_cleanup();
resolve_cleanup();
wakeup_cleanup();
send_cleanup();