Yes, most likely the switches.
The long press should shutdown, the short press a reboot (on ATRaspi 2.8 or older).
If that long shutdown unlatches before the shutdown time is satisfied, (but after the reboot time is satisfied) then it will do a reboot.