lib/wunderbar/websocket.rb in wunderbar-1.0.21 vs lib/wunderbar/websocket.rb in wunderbar-1.0.23

- old
+ new

@@ -186,11 +186,11 @@ channel = Wunderbar::Channel.new(port, buffer, opts[:locals]) if sock1 sock1.send('x',0) sock1.close end - channel.instance_eval &block + channel.instance_eval(&block) rescue Exception => exception channel._ :type=>:stderr, :line=>exception.inspect exception.backtrace.each do |frame| next if Wunderbar::CALLERS_TO_IGNORE.any? {|re| frame =~ re} channel._ :type=>:stderr, :line=>" #{frame}" @@ -207,10 +207,10 @@ if opts[:sync] instance_eval &proc else sock1, sock2 = UNIXSocket.pair - submit &proc + submit(&proc) sleep 0.3 while sock2.recv(1) != 'x' sock2.close end port