diff --git a/Artnet.h b/Artnet.h index 34f1225..bdde5c7 100644 --- a/Artnet.h +++ b/Artnet.h @@ -394,6 +394,12 @@ namespace arx unsubscribe(u); } + inline void clear_subscribers() + { + unsubscribe(); + callbacks.clear(); + } + protected: void attach(S& s) { stream = &s; }