Subject: | Possible race condition on Send followed by Disconnect |
From Net::Jabber, when sending a message, where the ->Send call is
directly followed by a ->Disconnect call the message is not delivered.
if however I add any kind of statement in between them it works.
#this breaks
$con->Send($msg);
$con->Disconnect;
#this too
$con->Send($msg) || 1;
$con->Disconnect;
#works
$con->Send($msg) or 1;
$con->Disconnect;
#works
$con->Send($msg);
sleep(1);
$con->Disconnect;
feel free to email me requesting more info. I am trying to put together
a test case, but I am usually on irc.perl.org as groditi