I executed the code on the server, but it keeps freezing, so I have to restart it repeatedly
I executed the code on the server, but it keeps freezing, so I have to restart it repeatedly
That sounds like you need to add some logging to your code to see where it is getting stuck so you can work out how to fix that.