ID:2894866
 
BYOND Version:515.1619
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 118.0
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

del(world) does not stop the world until the end of the tick.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
/world/New()
log << "Tick: [time]"
sleep(1) // removing this line makes no difference
log << "Tick: [time]"
del(world)
world.log << "This line will always be hit"
sleep(1)
world.log << "This line is impossible to hit"


Actual Results:

The world continues to run after del(world) call, potentially leading to unexpected behavior

Does the problem occur:
Every time

When does the problem NOT occur?
Never

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I checked, the issue exists on 510.1347

Workarounds:
Sleep immediately
world/Del() is not overridden
Okay, this is especially heinous if `world.sleep_offline` is set because that means the command will never go through until someone joins the world (Or maybe if a topic is received? I didn't check).
In response to Cyberboss
https://www.byond.com/forum/post/2837392
Plugging this back in since you brought it up.

sleep_offline is default set to on, even though it is documented as being off by default.