mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-28 02:55:05 +00:00
fix(stream): segfault for datastream with no reader
This commit is contained in:
1 file changed
+1
@@ -35,6 +35,7 @@ void DataStream::onReaderDestroyed() {
|
||||
}
|
||||
|
||||
void DataStream::onBytesAvailable() {
|
||||
if (this->mReader == nullptr) return;
|
||||
auto buf = this->ioDevice()->readAll();
|
||||
this->mReader->parseBytes(buf, this->buffer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user