Suspend MPD library scan

Hi all,
for the correct functioning of the plugin that I am developing, I have to temporarily suspend the scan of the music library.
What is the correct way to do it?
Thanks to those who want to answer me.