Make DNSServer close its socket at the end of run()

This CL makes the DNSServer class close its socket when the server
thread is shutting down and the run() method is about to return.

BUG=chromium-os:32062
TEST=Port can be reused by another DNSServer in the same process

Change-Id: I6bd0120f8fb8488416a1920a6f6feef7ce487785
Reviewed-on: https://gerrit.chromium.org/gerrit/25919
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
1 file changed
tree: efb76b27f1af4db93b7c8d48910de14400fbbd37
  1. src/
  2. inherit-review-settings-ok
  3. LICENSE
  4. README.chromium