summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event/DeferEvent.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event/DeferEvent.hxx b/src/event/DeferEvent.hxx
index d1e3326d0..a9babaea6 100644
--- a/src/event/DeferEvent.hxx
+++ b/src/event/DeferEvent.hxx
@@ -45,6 +45,9 @@ public:
DeferEvent(EventLoop &_loop, Callback _callback) noexcept
:loop(_loop), callback(_callback) {}
+ DeferEvent(const DeferEvent &) = delete;
+ DeferEvent &operator=(const DeferEvent &) = delete;
+
~DeferEvent() noexcept {
Cancel();
}