diff --git a/TweetStation/UI/Timeline.cs b/TweetStation/UI/Timeline.cs index 7338b63..1172270 100644 --- a/TweetStation/UI/Timeline.cs +++ b/TweetStation/UI/Timeline.cs @@ -501,15 +501,19 @@ void Load (int page, long since_id) { var fullUrl = BuildUrl (page, since_id); TwitterAccount.CurrentAccount.Download (fullUrl, false, res => { - CancelMenu (); if (res == null){ - BeginInvokeOnMainThread (delegate { Root = Util.MakeError (TimelineTitle); }); + BeginInvokeOnMainThread (delegate { + CancelMenu (); + Root = Util.MakeError (TimelineTitle); + }); return; } Element [] tweetArray = (from tweet in GetTweetStream (res) select (Element) new TweetElement (tweet)).ToArray (); // Now on the main thread, do the UI work BeginInvokeOnMainThread (delegate { + CancelMenu (); + Section section; if (since_id == 0){ if (page == 1){