|
|
|
@ -159,9 +159,7 @@ GrpcUdpListener::GrpcUdpListener(grpc_udp_server* server, int fd, |
|
|
|
|
gpr_mu_init(&mutex_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GrpcUdpListener::~GrpcUdpListener() { |
|
|
|
|
gpr_mu_destroy(&mutex_); |
|
|
|
|
} |
|
|
|
|
GrpcUdpListener::~GrpcUdpListener() { gpr_mu_destroy(&mutex_); } |
|
|
|
|
|
|
|
|
|
/* the overall server */ |
|
|
|
|
struct grpc_udp_server { |
|
|
|
@ -239,7 +237,6 @@ void GrpcUdpListener::shutdown_fd(void* args, grpc_error* error) { |
|
|
|
|
gpr_mu_unlock(sp->mutex()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void finish_shutdown(grpc_udp_server* s) { |
|
|
|
|
if (s->shutdown_complete != nullptr) { |
|
|
|
|
GRPC_CLOSURE_SCHED(s->shutdown_complete, GRPC_ERROR_NONE); |
|
|
|
@ -257,7 +254,6 @@ static void finish_shutdown(grpc_udp_server* s) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grpc_core::Delete(s); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void destroyed_port(void* server, grpc_error* error) { |
|
|
|
|