Removed timeout in the EventDispatcher, clarified TODO about the message queue
of messages that failed to be sent. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15899 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -532,8 +532,9 @@ EventDispatcher::_SendMessage(BMessenger& messenger, BMessage* message,
|
|||||||
float importance)
|
float importance)
|
||||||
{
|
{
|
||||||
// TODO: add failed messages to a queue, and start dropping them by importance
|
// TODO: add failed messages to a queue, and start dropping them by importance
|
||||||
|
// (and use the same mechanism in ServerWindow::SendMessageToClient())
|
||||||
|
|
||||||
status_t status = messenger.SendMessage(message, (BHandler*)NULL, (bigtime_t)(importance * 100000));
|
status_t status = messenger.SendMessage(message, (BHandler*)NULL, 0);
|
||||||
if (status != B_OK) {
|
if (status != B_OK) {
|
||||||
printf("EventDispatcher: failed to send message '%.4s' to target: %s\n",
|
printf("EventDispatcher: failed to send message '%.4s' to target: %s\n",
|
||||||
(char*)&message->what, strerror(status));
|
(char*)&message->what, strerror(status));
|
||||||
|
|||||||
Reference in New Issue
Block a user