Fix /trigger getting stuck on generation lock timeout

This commit is contained in:
Cohee 2024-07-11 00:32:45 +03:00
parent edb4856840
commit adc3eeea51

View File

@ -2472,6 +2472,7 @@ async function triggerGenerationCallback(args, value) {
} catch {
console.warn('Timeout waiting for generation unlock');
toastr.warning('Cannot run /trigger command while the reply is being generated.');
outerResolve(Promise.resolve(''));
return '';
}