Skip to content

Commit

Permalink
πŸ› Adjust previously committed fix -- misread the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
canterberry committed May 30, 2019
1 parent db5f316 commit 45ef1ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Blockmason.Link/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ public Task<T> Get<T>(string path) {
});
}

private async T WithValidSession<T>(Func<Session, Task<T>> WithSession) {
private async Task<T> WithValidSession<T>(Func<Session, Task<T>> WithSession) {
try {
T result = await WithSession(m_Session);
return result;
} catch {
m_Session = await m_Session.Refresh();
return WithSession(m_Session);
T result = await WithSession(m_Session);
return result;
}
}
}
Expand Down

0 comments on commit 45ef1ad

Please sign in to comment.