diff options
author | 2020-11-17 16:27:11 +0100 | |
---|---|---|
committer | 2020-11-17 16:27:11 +0100 | |
commit | a9f8b2b764ff8a93f2bc7e7994d649cc313a3081 (patch) | |
tree | 85af0db2fb1b8e652e20a8f2024394ce57cd4961 | |
parent | api: retry on ERROR_TRANSACTION_NOT_ACTIVE when disabling dead GW detect (diff) | |
download | wintun-a9f8b2b764ff8a93f2bc7e7994d649cc313a3081.tar.xz wintun-a9f8b2b764ff8a93f2bc7e7994d649cc313a3081.zip |
api: do not make dead gateway detection failures fatal0.9.1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | api/adapter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/adapter.c b/api/adapter.c index 8cbd76d..a5fce7e 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -1524,7 +1524,7 @@ static _Return_type_success_(return != NULL) WINTUN_ADAPTER *CreateAdapter( RegCloseKey(TcpipInterfaceRegKey); if (LastError == ERROR_SUCCESS) break; - if (LastError != ERROR_TRANSACTION_NOT_ACTIVE || Tries == 299) + if (LastError != ERROR_TRANSACTION_NOT_ACTIVE) { LOG_ERROR(L"Failed to set EnableDeadGWDetect", LastError); goto cleanupTcpipAdapterRegKey; |