What happens when I upgrade a boosted building?

//ads -- adsterra.com -- native banner
?>
One can boost resource collectors (elixir pumps/drills and gold mines), hero recovery, barracks and spell factories, to make them work faster for a while. I know a barracks boost gets "paused" when the servers are down forward maintenance and one can "resume" them boost when one's ready to profit from it again.
But what happens when I upgrade a boosted resource collector (and render it inactive forward a while). Does the boost get paused? Or is it just a waist of the gems used for boosting?
Pictures about "What happens when I upgrade a boosted building?"



What boosts do you get when you upgrade your town hall?
Hero Boost Starting from Town Hall 8, the player's Heroes are temporarily boosted to add 5 levels (as if under the effect of a Hero Potion). The boosts last for 3 to 5 days, depending on the player's new Town Hall level: Upgrading to Town Hall 4-6 will give a boost of 3 days.What does the boost do in COC?
The "boost" in Clash of Clans means that, for example, boosting a gold mine would make the mine produce gold faster. The "boost" is the green light circling resource collectors that you might see when you visit other players. Basically, it just boosts your resource collectors.Can you pause training boost in COC?
Short-term boosts will be paused. You can resume the boost at your convenience. Simply tap on the paused building, which will have a red glow around it, and tap the 'Resume' button.Build, code \u0026 Play - LEGO BOOST
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: NOHK, Henry Marsh, Max Vakhtbovych, Thirdman