diff options
Diffstat (limited to 'src/platform/windows/win_net.c')
| -rw-r--r-- | src/platform/windows/win_net.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/platform/windows/win_net.c b/src/platform/windows/win_net.c index d9abc670..59fc0986 100644 --- a/src/platform/windows/win_net.c +++ b/src/platform/windows/win_net.c @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore <garrett@damore.org> +// Copyright 2017 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -544,7 +545,9 @@ nni_win_tcp_acc_finish(nni_win_event *evt, nni_aio *aio) } aio->a_pipe = pipe; - nni_aio_finish(aio, 0, 0); + if (nni_aio_finish(aio, 0, 0) != 0) { + nni_plat_tcp_pipe_fini(pipe); + } } static int |
