core/modules: add missing vlc_interrupt_unregister() check
One other solution could be to leave ctx->interrupted untouched from vlc_interrupt_finish so that the next vlc_interrupt_register call will trigger the callback (but the current approach allows failing earlier).
Edited by Thomas Guillem