{"action":"created","issue":{"url":"https://api.github.com/repos/Suprcode/mir2/issues/220","repository_url":"https://api.github.com/repos/Suprcode/mir2","labels_url":"https://api.github.com/repos/Suprcode/mir2/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/Suprcode/mir2/issues/220/comments","events_url":"https://api.github.com/repos/Suprcode/mir2/issues/220/events","html_url":"https://github.com/Suprcode/mir2/issues/220","id":189186178,"number":220,"title":"Server Crash Log","user":{"login":"RyanTaplin1705","id":11903234,"avatar_url":"https://avatars.githubusercontent.com/u/11903234?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanTaplin1705","html_url":"https://github.com/RyanTaplin1705","followers_url":"https://api.github.com/users/RyanTaplin1705/followers","following_url":"https://api.github.com/users/RyanTaplin1705/following{/other_user}","gists_url":"https://api.github.com/users/RyanTaplin1705/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanTaplin1705/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanTaplin1705/subscriptions","organizations_url":"https://api.github.com/users/RyanTaplin1705/orgs","repos_url":"https://api.github.com/users/RyanTaplin1705/repos","events_url":"https://api.github.com/users/RyanTaplin1705/events{/privacy}","received_events_url":"https://api.github.com/users/RyanTaplin1705/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-14T18:19:24Z","updated_at":"2016-11-15T21:19:04Z","closed_at":null,"body":"```\r\n[14/11/2016 02:40:55] System.NullReferenceException: Object reference not set to an instance of an object.\r\nat Server.MirNetwork.MirConnection.Process()\r\nat Server.MirEnvir.Envir.WorkLoop() at line 0\r\n```\r\n\r\n\r\nVery vague, from [Incredulous](http://www.lomcn.org/forum/member.php?28634-Incredulous). I was looking into the .Process() methods and found the below code.\r\n\r\nI'm wondering if the client does not exist or is not connected why are we disconnecting them? Shouldn't be the opposite? If they are connect & do exist then disconnect them. @Suprcode \r\n\r\n```\r\nif (_client == null || !_client.Connected)\r\n{\r\n                Disconnect(20);\r\n                return;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Suprcode/mir2/issues/comments/260771568","html_url":"https://github.com/Suprcode/mir2/issues/220#issuecomment-260771568","issue_url":"https://api.github.com/repos/Suprcode/mir2/issues/220","id":260771568,"user":{"login":"RyanTaplin1705","id":11903234,"avatar_url":"https://avatars.githubusercontent.com/u/11903234?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanTaplin1705","html_url":"https://github.com/RyanTaplin1705","followers_url":"https://api.github.com/users/RyanTaplin1705/followers","following_url":"https://api.github.com/users/RyanTaplin1705/following{/other_user}","gists_url":"https://api.github.com/users/RyanTaplin1705/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanTaplin1705/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanTaplin1705/subscriptions","organizations_url":"https://api.github.com/users/RyanTaplin1705/orgs","repos_url":"https://api.github.com/users/RyanTaplin1705/repos","events_url":"https://api.github.com/users/RyanTaplin1705/events{/privacy}","received_events_url":"https://api.github.com/users/RyanTaplin1705/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T21:19:04Z","updated_at":"2016-11-15T21:19:04Z","body":"@Suprcode are you sure it's not asynchronous? In the config.ini there is settings for more than one thread. Which is also reflected in the WorkLoop() method which is where we are getting the error. I think it's only for monsters.\r\n\r\nI don't think this is related though; it is within WorkLoop() but it's around .Process()\r\n\r\n```\r\nMobThread Info = MobThreads[j];\r\n                        if (j > 0) //dont start up 0 \r\n                        {\r\n                            MobThreading[j] = new Thread(() => ThreadLoop(Info));\r\n                            MobThreading[j].IsBackground = true;\r\n                            MobThreading[j].Start();\r\n                        }\r\n```\r\n\r\n```\r\nMultithreaded=True\r\nThreadLimit=2\r\n```"}}
{"actor":{"display_login":"RyanTaplin1705"}}