Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on disconnect #1840

Closed
TheNormalnij opened this issue Nov 15, 2020 · 1 comment
Closed

Crash on disconnect #1840

TheNormalnij opened this issue Nov 15, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@TheNormalnij
Copy link
Contributor

TheNormalnij commented Nov 15, 2020

Describe the bug
Crash.

To reproduce

  1. Run this code
local id = engineRequestModel( "object" )

local object = Object( id, 0, 0, 5 )

addEventHandler( "onClientResourceStop", resourceRoot, function()
	object:destroy()
end )
localPlayer:setPosition( 0, 0, 4 )
  1. Disconnect

Version
r20716 <=

Additional context
Only event onClientResourceStop will cause crash

@TheNormalnij TheNormalnij added the bug Something isn't working label Nov 15, 2020
@TheNormalnij
Copy link
Contributor Author

It's related to stopResource function

ghost pushed a commit to codenulls/mtasa-blue that referenced this issue Nov 17, 2020
@ghost ghost closed this as completed in 5b95696 Nov 18, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant