Fix ooba streaming server crash

This commit is contained in:
SillyLossy
2023-04-17 14:24:05 +03:00
parent c5a3ec7d6e
commit dd1931eaed

View File

@ -417,7 +417,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
try { try {
for await (const text of readWebsocket()) { for await (const text of readWebsocket()) {
if (text == null) { if (text == null || typeof text !== 'string') {
break; break;
} }