Skip to content

Commit 78e57e5

Browse files
committed
Fix run sync on already started task
1 parent 9a10daa commit 78e57e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RedditSharp/Things/AuthenticatedUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ await JsonConvert.PopulateObjectAsync(json["name"] == null ? json["data"].ToStri
2525
}
2626
public new AuthenticatedUser Init(Reddit reddit, JToken json, IWebAgent webAgent)
2727
{
28-
CommonInit(reddit, json, webAgent).RunSynchronously();
28+
CommonInit(reddit, json, webAgent).Wait();
2929
JsonConvert.PopulateObject(json["name"] == null ? json["data"].ToString() : json.ToString(), this,
3030
reddit.JsonSerializerSettings);
3131
return this;

0 commit comments

Comments
 (0)