unix: don't clear flags after closing UDP handle

This commit is contained in:
Saúl Ibarra Corretgé 2013-03-28 15:50:42 +01:00 committed by Ben Noordhuis
parent 75141493ba
commit a9a23dc28e
2 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,6 @@ void uv__udp_finish_close(uv_udp_t* handle) {
}
/* Now tear down the handle. */
handle->flags = 0;
handle->recv_cb = NULL;
handle->alloc_cb = NULL;
/* but _do not_ touch close_cb */

View File

@ -53,6 +53,7 @@ static uv_buf_t alloc_cb(uv_handle_t* handle, size_t suggested_size) {
static void close_cb(uv_handle_t* handle) {
CHECK_HANDLE(handle);
ASSERT(uv_is_closing(handle));
close_cb_called++;
}