Yeah you are only supposed to get it when they come back
And only AFTER getting kicked out by someone else. If it goes to 0 and then gets kicked out, you don't get any coins. Seems like giving spoofers an advantage to control gyms.
Hmm dunno how I feel about this new system now. Hopefully it turns out to be better than the previous one