mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
[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:
parent
fee00f1f3c
commit
0a1858b9d1
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue