Mtasa-blue: Restarting resource in onResourcePreStart causes an infinite loop

Created on 24 May 2019  路  3Comments  路  Source: multitheftauto/mtasa-blue

Describe the bug
Restarting resource in onResourcePreStart causes an infinite loop.

To reproduce
Restart starting resource in onResourcePreStart.

Expected behaviour
Resource should not be restarted while in starting state.

bug wontfix

Most helpful comment

Is it really a bug when you produce an infinite loop and then complain it shouldn't loop forever?
Furthermore, the resource restart is a queued task and not immediate, so that means the resource probably starts successfully and then gets restarted, and not during the onResourcePreStart event.

All 3 comments

Is it really a bug when you produce an infinite loop and then complain it shouldn't loop forever?
Furthermore, the resource restart is a queued task and not immediate, so that means the resource probably starts successfully and then gets restarted, and not during the onResourcePreStart event.

I don't think this is a concern and to be honest expected behavior.

You are right.

Was this page helpful?
0 / 5 - 0 ratings