This commit is contained in:
Adam Ierymenko 2019-08-28 14:06:45 -07:00
parent 7bca81464b
commit 8915b88de5
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -426,5 +426,12 @@ int main(int argc,char **argv)
sleep(1);
}
for(auto s=sockets.begin();s!=sockets.end();++s) {
shutdown(*s,SHUT_RDWR);
close(*s);
}
for(auto t=threads.begin();t!=threads.end();++t)
t->join();
return 0;
}