Skip to content

Commit 137b8c6

Browse files
committed
Fix not support exception
1 parent 3f734f9 commit 137b8c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ContextMenuManager/Methods/Updater.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ void WriteFiles(string dirName, out string succeeded, out string failed)
109109
using(UAWebClient client = new UAWebClient())
110110
{
111111
string fileUrl = $"{dirUrl}/{Path.GetFileName(filePath)}";
112-
var func = new Func<string, string, bool>(client.WebStringToFile);
113-
bool flag = func.EndInvoke(func.BeginInvoke(filePath, fileUrl, null, null));
112+
bool flag = client.WebStringToFile(filePath, fileUrl);
114113
string item = "\r\n ● " + Path.GetFileName(filePath);
115114
if(flag) succeeded += item;
116115
else failed += item;

0 commit comments

Comments
 (0)