AsyncMessenger: a trivial refactory and a fix

please add brace to "if" and "else if" for consistence because "else" uses brace.

Others seemed good to me, thx!