diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-04-07 16:13:13 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-07 16:20:48 -0700 |
commit | 6d97916b16f21c9b5a379ce5ddd35d30956f0304 (patch) | |
tree | 6c6e44ba4a43db12f1821f5c31551d262cf77234 /src | |
parent | aec96aa2232b3ab7f86bc08a99f82684406edf0b (diff) |
Update Windows build for interface changes
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/tcp_server_windows.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/iomgr/tcp_server_windows.c b/src/core/iomgr/tcp_server_windows.c index 0c3ab1dc91..896c9e5d08 100644 --- a/src/core/iomgr/tcp_server_windows.c +++ b/src/core/iomgr/tcp_server_windows.c @@ -92,7 +92,9 @@ grpc_tcp_server *grpc_tcp_server_create(void) { return s; } -void grpc_tcp_server_destroy(grpc_tcp_server *s) { +void grpc_tcp_server_destroy(grpc_tcp_server *s, + void(*shutdown_done)(void *shutdown_done_arg), + void *shutdown_done_arg) { size_t i; gpr_mu_lock(&s->mu); /* shutdown all fd's */ @@ -112,6 +114,10 @@ void grpc_tcp_server_destroy(grpc_tcp_server *s) { } gpr_free(s->ports); gpr_free(s); + + if (shutdown_done) { + shutdown_done(shutdown_done_arg); + } } /* Prepare a recently-created socket for listening. */ |