massively simplify loop logic
This commit is contained in:
@@ -86,8 +86,6 @@ var nota = hidden.nota
|
||||
// Strip hidden from cell so nothing else can access it
|
||||
delete cell.hidden
|
||||
|
||||
var os = use_embed('os')
|
||||
|
||||
function disrupt(err)
|
||||
{
|
||||
if (overling) {
|
||||
@@ -97,10 +95,12 @@ function disrupt(err)
|
||||
|
||||
log.error(err)
|
||||
|
||||
log.console("DISRUPTING")
|
||||
|
||||
actor_mod.disrupt()
|
||||
}
|
||||
|
||||
os.on(disrupt)
|
||||
actor_mod.on_exception(disrupt)
|
||||
|
||||
var js = use_embed('js')
|
||||
|
||||
@@ -688,7 +688,7 @@ function destroyself() {
|
||||
|
||||
if (overling) report_to_overling({type:'stop'})
|
||||
|
||||
actor_mod.destroy()
|
||||
actor_mod.disrupt()
|
||||
}
|
||||
|
||||
function handle_actor_disconnect(id) {
|
||||
|
||||
Reference in New Issue
Block a user