Revert close() logic to previous behavior (#132)
Revert close() logic to previous behavior (#132)

Fixes #82

Previously, close() put JmDNSImpl into a CANCELING_1 state, which would transition to
CANCELING_2, CANCELING_3, and finally CANCELED.  close() waited the for CANCELED state,
which took about 2 seconds, during which time broadcasts are sent out to remove services
that were advertised.  In Jan 20, 2011 this was changed to put JmDNSImpl into a CLOSING
state, which would transition to CLOSED, but close() still waits for CANCELED, which no
longer happens resulting in a 5 second timeout.  I tried changing to wait for CLOSED,
but then the logic to remove advertised services no longer gets executed.  Reverting to
the orignal logic is safe, and fixes the bug.

Signed-off-by: Ed Tyrrill <47e63e31c6c3625b3b0b8584be43bf12c93a8442@gmail.com> (github: etyrrill)
openhab/jmdns,jmdns/jmdns,jmdns/jmdns,openhab/jmdns