Skip to content

Commit

Permalink
fix: remove async
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Apr 18, 2023
1 parent 15c4d89 commit 978b0d0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Net;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;

namespace k8s
Expand Down Expand Up @@ -567,7 +566,7 @@ public static ExecCredentialResponse ExecuteExternalCommand(ExternalExecution co
}

// Wait for a maximum of 5 seconds, if a response takes longer probably something went wrong...
if (!process.WaitForExitAsync().Wait(TimeSpan.FromSeconds(5)))
if (!process.WaitForExit(5000))
{
if (!string.IsNullOrWhiteSpace(stderr))
{
Expand Down

0 comments on commit 978b0d0

Please sign in to comment.