[BugFix] prevent infinite loop to return to wps from plugins

if there is nothing to resume then it will return to the plugin endlessly
hanging the device

Change-Id: I7d6a0c7ec5a9e049cf62f88542bedaa1081556ac
This commit is contained in:
William Wilgus 2026-06-10 01:14:53 -04:00
parent fee00f1f3c
commit 0a1858b9d1

View file

@ -791,8 +791,8 @@ static int load_plugin_screen(char *key)
if (ret == PLUGIN_USB_CONNECTED || ret == PLUGIN_ERROR)
ret_val = GO_TO_ROOT;
else if (ret == PLUGIN_GOTO_WPS)
ret_val = GO_TO_WPS;
else if (ret == PLUGIN_GOTO_WPS) /* prevent infinite loop */
ret_val = old_global == GO_TO_WPS ? GO_TO_BROWSEPLUGINS : GO_TO_WPS;
else if (ret == PLUGIN_GOTO_PLUGIN)
{
if(op_entry->lang_id == LANG_OPEN_PLUGIN)