23.04.2018, 15:19
There's a lot going on in the accept command. To make debugging a little easier, you might want to use the CrashDetect (GitHub Repo) plugin. This will most likely give a more detailed picture of what's going on. When your server crashes it will print information to the server_log.txt.
I do notice some logging going on
My assumption is that this function will write things to a file. If the server cannot access/create that file or directory, it might crash. So you might want to verify that the 'logs' folder exists (probably in scriptfiles). If it doesn't exist, create it, and check whether the problem still exists.
I do notice some logging going on
PHP Code:
Log("logs/pay.log", String);