Skip to content

Commit

Permalink
修复http组件的一个异步返回的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egametang committed Jan 23, 2019
1 parent 4453905 commit 15a7b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Model/Module/Http/HttpComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private async ETTask InvokeHandler(HttpListenerContext context)
// 自动把返回值,以json方式响应。
object resp = methodInfo.Invoke(httpHandler, args);
object result = resp;
if (resp is ETTask t)
if (resp is ETTask<HttpResult> t)
{
await t;
result = t.GetType().GetProperty("Result").GetValue(t, null);
Expand Down

0 comments on commit 15a7b31

Please sign in to comment.