Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 2ede40f

Browse files
committed
Need to close after writing
1 parent e3b86a7 commit 2ede40f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ string password
266266
{
267267
proc.StandardInput.WriteLine(username);
268268
proc.StandardInput.WriteLine(password);
269+
proc.StandardInput.Close();
269270
};
270271
var ret = await loginTask.StartAwait();
271272
if (ret.Count == 0)
@@ -313,6 +314,7 @@ string code
313314
proc.StandardInput.WriteLine(username);
314315
proc.StandardInput.WriteLine(password);
315316
proc.StandardInput.WriteLine(code);
317+
proc.StandardInput.Close();
316318
};
317319
var ret = await loginTask.StartAwait();
318320
if (ret.Count == 0)

0 commit comments

Comments
 (0)