There must be many situations when you feel tired and bored. What happens to you in this situation? You are no longer the same efficient person. The quality of what you do drops. The first thought which comes to your mind it to quit from what you are doing.
Is it possible to reverse this situation without quitting the work or the reason which is causing it? Yes, if you want to fix it then there are ways. Try to figure out why you fell in this trap. The reason can be something like monotonous work, getting distracted by some other thing, not finding value or purpose, physically too tired , mentally too exhausted because of some reason etc.
If you have been able to find out the reason properly then its half the battle. Because the moment you know the reason you will know what to do next to fix it. Until you do not know why something is happening you are stuck in it
It is always possible to deal with any kind of tiredness and boredom but you must have the will and desire to do so. Take action when you are infected by tiredness and boredom.
Cheers,
Zustfine