]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
NetworkExtension: close context before turning off go
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 31 Oct 2018 02:03:00 +0000 (03:03 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 31 Oct 2018 02:03:00 +0000 (03:03 +0100)
commitd2f3a29f45db59ab48fb398b835b377ca4e6833d
tree791dc64096e9ff02a3ef14cc3084c7c0b8c79737
parent3ed88cd858f6d56399cdfbd44038a0eb8c51402a
NetworkExtension: close context before turning off go

The go turnOff code waits for all readers to have completed. In order to
make readers complete, we must send the signal to unblock the request.
Thus, we must reorder these.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift