There a latch system near the back that’s depressed by the next cartridge in the magazine. As long as there are cartridges in the magazine, the latch can’t grab the bolt (the part that slide back).
Once the magazine is empty there’s nothing to hold the latching mechanism down, and it grabs the bolt on the next recoil, holding it open until a new round is chambered.
Edit:typo
Latest Answers