What is the meaning of [the game is not worth the candle]

It is not worth persisting in an enterprise that is unlikely to yield enough profit or benefit to compensate for the effort or expense involved, or that carries a risk, actual harm or loss.