Changeset 2057 for trunk/modules/kobot/libraries/Kobot.php
- Timestamp:
- 02/15/2008 09:16:09 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/modules/kobot/libraries/Kobot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kobot/libraries/Kobot.php
r2056 r2057 239 239 $loop_time = microtime(TRUE); 240 240 241 // Read the raw server stream, up to 512characters242 while ($raw = fgets($this->socket, 512))241 // Read the raw server stream, up to 1024 characters 242 while ($raw = fgets($this->socket, 1024)) 243 243 { 244 244 // Update the last received time … … 267 267 268 268 // Every loop should take one-half second 269 ($loop_time < 500000) and usleep(500000 - $loop_time);269 ($loop_time < 500000) and usleep(500000 - (int) $loop_time); 270 270 } 271 271 272 272 // Disconnect 273 273 $this->log(1, 'Disconnected'); 274 275 // TODO: Handle reconnecting 274 276 } 275 277
