Skip to content

Commit

Permalink
MDL-23755 remove erroneous sleep() call when messages are sent
Browse files Browse the repository at this point in the history
Results in big speed boost when sending messages to multiple recipients.
  • Loading branch information
Ashley Holman committed Aug 12, 2010
1 parent 4afe958 commit 7a8868f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions message/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -998,8 +998,6 @@ function message_post_message($userfrom, $userto, $message, $format, $messagetyp
if (email_to_user($userto, $userfrom, $messagesubject, $messagetext, $messagehtml)) { if (email_to_user($userto, $userfrom, $messagesubject, $messagetext, $messagehtml)) {
$CFG->messagewasjustemailed = true; $CFG->messagewasjustemailed = true;
} }

sleep(3);
} }
} }


Expand Down

0 comments on commit 7a8868f

Please sign in to comment.