Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
#1250 fixed wrong param in the comparison - too quick typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed Mar 5, 2019
1 parent fb53762 commit 8976053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Base/SPOnlineConnection.cs
Expand Up @@ -153,7 +153,7 @@ private void Context_ExecutingWebRequest(object sender, WebRequestEventArgs e)

public void RestoreCachedContext(string url)
{
Context = ContextCache.FirstOrDefault(c => new Uri(c.Url).AbsoluteUri == new Uri(Context.Url).AbsoluteUri);
Context = ContextCache.FirstOrDefault(c => new Uri(c.Url).AbsoluteUri == new Uri(url).AbsoluteUri);
}

internal void CacheContext()
Expand All @@ -167,7 +167,7 @@ internal void CacheContext()

public ClientContext CloneContext(string url)
{
var context = ContextCache.FirstOrDefault(c => new Uri(c.Url).AbsoluteUri == new Uri(Context.Url).AbsoluteUri);
var context = ContextCache.FirstOrDefault(c => new Uri(c.Url).AbsoluteUri == new Uri(url).AbsoluteUri);
if (context == null)
{
context = Context.Clone(url);
Expand Down

0 comments on commit 8976053

Please sign in to comment.