Skip to content

Commit 978b0d0

Browse files
committed
fix: remove async
1 parent 15c4d89 commit 978b0d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Net;
77
using System.Runtime.InteropServices;
88
using System.Security.Cryptography.X509Certificates;
9-
using System.Text;
109
using System.Threading.Tasks;
1110

1211
namespace k8s
@@ -567,7 +566,7 @@ public static ExecCredentialResponse ExecuteExternalCommand(ExternalExecution co
567566
}
568567

569568
// Wait for a maximum of 5 seconds, if a response takes longer probably something went wrong...
570-
if (!process.WaitForExitAsync().Wait(TimeSpan.FromSeconds(5)))
569+
if (!process.WaitForExit(5000))
571570
{
572571
if (!string.IsNullOrWhiteSpace(stderr))
573572
{

0 commit comments

Comments
 (0)