mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-21 12:34:56 +00:00
Crash fix.
This commit is contained in:
parent
d6682eb130
commit
e2122277ee
1 changed files with 3 additions and 1 deletions
|
@ -133,6 +133,7 @@ namespace redis {
|
||||||
}
|
}
|
||||||
|
|
||||||
Batch::~Batch() noexcept {
|
Batch::~Batch() noexcept {
|
||||||
|
if (m_local_data)
|
||||||
this->reset();
|
this->reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,6 +202,7 @@ namespace redis {
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(m_local_data);
|
||||||
assert(0 == m_local_data->pending_futures);
|
assert(0 == m_local_data->pending_futures);
|
||||||
m_futures.clear();
|
m_futures.clear();
|
||||||
m_replies.clear();
|
m_replies.clear();
|
||||||
|
|
Loading…
Add table
Reference in a new issue