# File lib_core/rucy/restart.rb, line 52
    def wait
      @lock.synchronize{
        until (@state)
          @cond.wait(@lock)
        end
      }
      case (@state)
      when :notify
        @server.restart
      when :close
        @server.close
      end
      nil
    end