My laptop turns off immediately when not charging
my laptop is a very old one, I think it's probably older than 8 years, so it has a lot of battery problems, it can't stay out of it's charging state for more than 30 minutes. I've thought about fixing the battery, but I have no money right now and am scared that it might just not be worth it since he is always in the brink of breaking down forever.
it also has an issue in the charging port where any movement makes it disconnect and stop charging, so I need to give it a little tap for it to reconnect
and today it disconnected for half a second (as it does) and my PC just turned off immediately, wasn't even low on battery. I tried it again to see if that was actually what happened and yeah, now it just turns off completely if it disconnects, not even shuts down like when it's battery ends, it just full on turns off.
Is this some problem on the battery? maybe something else? and if so, should I fix it or just continue using it, just more carefully for it to turn off?
(and no, I can't afford a new one, probably never will either since in my country a laptop costs 4 months of salary)