aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/adapter.c2
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;