Skip to content

Commit 36941e3

Browse files
committed
Tidy
1 parent a8e4d5b commit 36941e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/server/ruby/lib/sonicpi/runtime.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -1135,12 +1135,12 @@ def __in_thread(*opts, &block)
11351135

11361136
if (!parent_t.alive?) && parent_subthreads.empty?
11371137
# signal that the parent's subthreads are now empty and completed
1138-
yo_prom = __system_thread_locals(parent_t).get(:sonic_pi_local_spider_subthread_empty)
1139-
if yo_prom
1140-
yo_prom.deliver!(true)
1138+
subthread_empty_prom = __system_thread_locals(parent_t).get(:sonic_pi_local_spider_subthread_empty)
1139+
if subthread_empty_prom
1140+
subthread_empty_prom.deliver!(true)
11411141
else
1142-
log "Oh crap where is yo_prom????"
1143-
log "#{__system_thread_locals(parent_t).get(:sonic_pi_local_thread_group)}"
1142+
log "Subthread empty promise not found for parent thread:"
1143+
log " - #{__system_thread_locals(parent_t).get(:sonic_pi_local_thread_group)}"
11441144
end
11451145
end
11461146

0 commit comments

Comments
 (0)