mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 17:40:34 +00:00
stream: reset subscription's stream pointer in stream's destructor
This commit is contained in:
@@ -41,6 +41,7 @@ public:
|
||||
stream() = default;
|
||||
stream(const stream&) = delete;
|
||||
stream(stream&&) = delete;
|
||||
~stream();
|
||||
void operator=(const stream&) = delete;
|
||||
void operator=(stream&&) = delete;
|
||||
|
||||
@@ -93,6 +94,15 @@ public:
|
||||
friend class stream<T...>;
|
||||
};
|
||||
|
||||
|
||||
template <typename... T>
|
||||
inline
|
||||
stream<T...>::~stream() {
|
||||
if (_sub) {
|
||||
_sub->_stream = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename... T>
|
||||
inline
|
||||
subscription<T...>
|
||||
|
||||
Reference in New Issue
Block a user