diff --git a/SparklrLib/SparklrClient.cs b/SparklrLib/SparklrClient.cs index 0951aca..7c7f967 100644 --- a/SparklrLib/SparklrClient.cs +++ b/SparklrLib/SparklrClient.cs @@ -538,8 +538,10 @@ public async Task PostAsync(string message, Stream image) { awaitTheseRequests.Add(id, pendingUsernameRequests[id]); #if DEBUG +#if !PORTABLELIB if (System.Diagnostics.Debugger.IsLogging()) System.Diagnostics.Debugger.Log(0, "SparklrLib", String.Format("Awaiting pending request for {0}", id)); +#endif #endif } else diff --git a/SparklrWP Background Agent/ScheduledAgent.cs b/SparklrWP Background Agent/ScheduledAgent.cs index bcab54b..6dbae67 100644 --- a/SparklrWP Background Agent/ScheduledAgent.cs +++ b/SparklrWP Background Agent/ScheduledAgent.cs @@ -133,7 +133,7 @@ protected async override void OnInvoke(ScheduledTask task) data.Title = "Sparklr*"; data.BackgroundImage = new Uri("/Background.png", UriKind.Relative); //TODO?: change to not use external server? Update text only instead? - //Known bug: client.Usernames[strm.notifications[0].from] causes a InvalidData exception + //Known bug: client.Usernames[strm.notifications[0].from] causes a Outofrange exception //data.BackBackgroundImage = new Uri("http://til.eaterofcorps.es/?url=http%3A%2F%2Fd.sparklr.me%2Fi%2F" + strm.notifications[0].from + ".jpg&text=" + Uri.EscapeDataString(String.Format(textGenerator(strm.notifications[0]), client.Usernames[strm.notifications[0].from]))); til.Update(data);