mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Make sure AI is not busy when using retry to regenerate random story
This commit is contained in:
@ -2863,6 +2863,7 @@ def actionretry(data):
|
|||||||
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
|
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
|
||||||
return
|
return
|
||||||
if(vars.recentrng is not None):
|
if(vars.recentrng is not None):
|
||||||
|
if(not vars.aibusy):
|
||||||
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
|
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
|
||||||
return
|
return
|
||||||
if actionback():
|
if actionback():
|
||||||
|
Reference in New Issue
Block a user