diff --git a/src/Hprose/Service.php b/src/Hprose/Service.php
index <HASH>..<HASH> 100644
--- a/src/Hprose/Service.php
+++ b/src/Hprose/Service.php
@@ -1015,7 +1015,7 @@ abstract class Service extends HandlerManager {
                     $topics[$id]->count = 0;
                 }
                 $messages = $topics[$id]->messages;
-                if (!empty($messages)) {
+                if (!$messages->isEmpty()) {
                     $message = $messages->shift();
                     $message->detector->resolve(true);
                     $self->resetTimer($topics, $topic, $id);
Fixed a bug of push service.