View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-19-2017 , 19:17   Re: [ANY] Time Played Command
Reply With Quote #10

Quote:
Originally Posted by crafting View Post
I don't know if anyone would be able to fix this, but I was getting this error on my servers.....

L 07/13/2017 - 00:18: 32: [SM] Exception reported: Handle 17ed1102 is invalid (error 3)
L 07/13/2017 - 00:18: 32: [SM] Blaming: Time_Played.smx
L 07/13/2017 - 00:18: 32: [SM] Call stack trace:
L 07/13/2017 - 00:18: 32: [SM] [0] CloseHandle
L 07/13/2017 - 00:18: 32: [SM] [1] Line 34, /home/groups/alliedmodders/forums/files/1/9/4/9/8/0/111411.attach::OnClientDisconnect
Quote:
[00:12] asherkin: if a client connects but leaves very quickly, say during downloads, OnClientPutInServer will not fire, but OnClientDisconnect will
[00:13] asherkin: which is one of the many reasons that certain client related forwards are documented as being paired for usage like this
[00:13] asherkin: the plugin is closing the handle in OnClientDisconnect, but not setting it to null - so CloseHandle can be called on it twice in that case
[00:13] asherkin: just swap CloseHandle out for delete
__________________
asherkin is offline