summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Disconnect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index 176f0999..1411e666 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -96,7 +96,7 @@ Disconnect::Impl::Impl(Engine& e,
const float value = _head->value().get<float>();
for (uint32_t i = 0; i < _voices->size(); ++i) {
Buffer* buf = _voices->at(i).buffer.get();
- buf->set_block(value, 0, buf->nframes());
+ buf->set_block(value, 0, e.block_length());
}
} else {
for (uint32_t i = 0; i < _voices->size(); ++i) {