diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-03 17:54:07 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-03 17:55:23 +0100 |
commit | d834d6ed0647ba7e51e81f600fe259156e2b8070 (patch) | |
tree | 4b7b63648e788fc3e1c4f68457c3f3a8baa3cd6d /src/network/poller.hpp | |
parent | f2f94618fcf87b4fc1ad86902c63a7a48be745b8 (diff) | |
download | biboumi-d834d6ed0647ba7e51e81f600fe259156e2b8070.tar.gz biboumi-d834d6ed0647ba7e51e81f600fe259156e2b8070.tar.bz2 biboumi-d834d6ed0647ba7e51e81f600fe259156e2b8070.tar.xz biboumi-d834d6ed0647ba7e51e81f600fe259156e2b8070.zip |
Exit the poller when it handles no connection at all
Diffstat (limited to 'src/network/poller.hpp')
-rw-r--r-- | src/network/poller.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/poller.hpp b/src/network/poller.hpp index 64e78e4..319236b 100644 --- a/src/network/poller.hpp +++ b/src/network/poller.hpp @@ -57,8 +57,9 @@ public: /** * Wait for all watched events, and call the SocketHandlers' callbacks * when one is ready. + * Returns false if there are 0 SocketHandler in the list. */ - void poll(); + bool poll(); private: /** |