Skip to content
Browse files

Do not block the socket and wait a little more until the stats dump

git-svn-id: http://svn.php.net/repository/pear/packages/Net_IRC/trunk@80274 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 263bbba commit 53edcc4476d84bcd23d0b4ec64081a25e51e6568 @tvvcox tvvcox committed Apr 28, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/stats.php
View
4 examples/stats.php
@@ -20,8 +20,8 @@
$irc->command("JOIN #pear");
$i = 0;
while (true) {
- $irc->read(true);
- if ($i++ > 6) {
+ $irc->readEvent();
+ if ($i++ > 12) {
print_r($irc->getStats());
$i = 0;
}

0 comments on commit 53edcc4

Please sign in to comment.
Something went wrong with that request. Please try again.