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(); }