In every situation. The best way to deal with addiction is to walk away from it, not confronting it. Do something that entertains you, do something that you've never tried before. Addiction is mostly there because you either have tons of free time, or you free your time to use it towards your addiction.