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:
Axel Dörfler
2006-01-10 20:47:16 +00:00
parent face6fcd0a
commit 5143d99bb0
+2 -1
View File
@@ -532,8 +532,9 @@ EventDispatcher::_SendMessage(BMessenger& messenger, BMessage* message,
float 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) {
printf("EventDispatcher: failed to send message '%.4s' to target: %s\n",
(char*)&message->what, strerror(status));