summaryrefslogtreecommitdiff
path: root/includes/Selectable.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-23 00:32:02 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-23 00:32:02 -0800
commite977ca1e5f6a10bab7af8b2736591f709783566f (patch)
treed6bba8b988373bb73dc1e6e4f3fb66ae28c4b7c5 /includes/Selectable.h
parenta12275a467c72ff429af64e477ba1e3bad3d6d79 (diff)
Few minor fixes...
Diffstat (limited to 'includes/Selectable.h')
-rw-r--r--includes/Selectable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Selectable.h b/includes/Selectable.h
index 8667415..5dab7cb 100644
--- a/includes/Selectable.h
+++ b/includes/Selectable.h
@@ -26,7 +26,7 @@ class Selectable : public Handle {
public:
SelectableEvent(int fd, int evt = ev::READ | ev::WRITE) : m_task(NULL), m_evtType(evt), m_fd(fd) { Printer::elog(E_SELECT, "Got a new SelectableEvent at %p", this); m_evt.set<SelectableEvent, &SelectableEvent::evt_cb>(this); m_evt.set(fd, evt); }
virtual ~SelectableEvent() { Printer::elog(E_SELECT, "Destroying a SelectableEvent at %p", this); m_evt.stop(); }
- void stop() { Printer::elog(E_SELECT, "Stopping a SelectableEvent at %p", this); reset(); m_evt.stop(); }
+ void stop() { Printer::elog(E_SELECT, "Stopping a SelectableEvent at %p", this); resetMaybe(); m_evt.stop(); }
private:
void evt_cb(ev::io & w, int revents) { Printer::elog(E_SELECT, "Got a libev callback on a SelectableEvent at %p", this); doSignal(); }
virtual void gotOwner(Task * task);