Skip to content

Commit 3bfd016

Browse files
committed
menu.c: Remove RWLIST_UNLOCK call when list is already unlocked.
There was one path where we unlocked the menus list, but the listed was already unlocked, likely a vestige of when we kept the menus listed locked all the time while the menu was running, as opposed to just when we needed to access its options. LBBS-141 #close
1 parent 438caae commit 3bfd016

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

bbs/menu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ static int bbs_menu_run(struct bbs_node *node, const char *menuname, const char
615615
bbs_node_buffer(node);
616616
res = bbs_node_read_line(node, SEC_MS(30), menusequence, sizeof(menusequence) - 1);
617617
if (res <= 0) {
618-
RWLIST_UNLOCK(&menus);
619618
return opt;
620619
}
621620
menusequence[res] = '\0'; /* Null terminate */

0 commit comments

Comments
 (0)