Skip to content

Commit

Permalink
Engine-Twitter: Delay the Connected event launch a bit more
Browse files Browse the repository at this point in the history
Let's get the events be fired at the end of Connect(), rather than
at the middle.
  • Loading branch information
knocte committed Nov 21, 2013
1 parent 5586012 commit 5d34331
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ public override void Connect(FrontendManager fm, ServerModel server)
fm.UpdateNetworkStatus();
fm.SetStatus(message);
}
OnConnected(EventArgs.Empty);

msg = CreateMessageBuilder().
AppendEventPrefix().AppendText(message).ToMessage();
Expand All @@ -332,6 +331,9 @@ public override void Connect(FrontendManager fm, ServerModel server)
f_FriendsTimelineChat.PersonCount =
f_RepliesChat.PersonCount =
f_DirectMessagesChat.PersonCount = (int) f_TwitterUser.NumberOfFriends;

OnConnected(EventArgs.Empty);

} catch (Exception ex) {
var message = _("Failed to fetch user details from Twitter. Reason: ");
#if LOG4NET
Expand Down

0 comments on commit 5d34331

Please sign in to comment.