don't send on the channel while holding the lock, put it before or after