[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] Server.bootSync optional argument



hi all,

the documentation of Server.bootSync says:
> condition is an optional instance of Condition used for evaluating this.

in the implementation, the condition argument is not optional, though, but 
mandatory ... the following patch should fix this issue:

diff --git a/build/SCClassLibrary/Common/Control/Server.sc b/build/SCClassLibrary/Common/Control/Server.sc
index b7cf0c1..ab32a74 100644
--- a/build/SCClassLibrary/Common/Control/Server.sc
+++ b/build/SCClassLibrary/Common/Control/Server.sc
@@ -333,7 +333,7 @@ Server : Model {
                }).play(AppClock);
        }
 
-       bootSync { arg condition;
+       bootSync { arg condition = Condition.new;
                condition.test = false;
                this.waitForBoot({
                        // Setting func to true indicates that our condition has become true and we can go when signaled.

best, tim

-- 
tim@xxxxxxxxxx
http://tim.klingt.org

I had nothing to offer anybody except my own confusion
  Jack Kerouac