Changeset 5 for src/main/java/geniusweb


Ignore:
Timestamp:
09/25/19 16:49:11 (5 years ago)
Author:
bart
Message:

Fix consistency check LinearAdditiveUtilitySpace

Location:
src/main/java/geniusweb/runserver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/geniusweb/runserver/RunNego.java

    r4 r5  
    6565                RunningNego session = new RunningNego(settings,
    6666                                RunningNegotiationsRepo.instance(), log);
    67                 RunningNegotiationsRepo.instance().put(session);
     67                session.start();
    6868                // set content type to prevent some browsers
    6969                // trying to parse this (eg as XML)
  • src/main/java/geniusweb/runserver/RunningNego.java

    r1 r5  
    3636
    3737        /**
    38          * Create new session wth unique ID.
     38         * Create new session wth unique ID. You should call {@link #start()} to
     39         * actually start this.
    3940         *
    4041         * @param settings the settings to use for this session
     
    4849                        Reporter logger) {
    4950                this.log = logger;
    50                 protocol = settings.getProtocol(logger);
     51                this.protocol = settings.getProtocol(logger);
    5152                this.sessionid = "" + protocol.getRef().getURI() + (negoNr++);
    5253                this.repo = repo;
     54        }
     55
     56        public void start() {
    5357                System.out.println("new session. logging to " + logdir);
     58                repo.put(this);
    5459                protocol.addListener(evt -> handle(evt));
    55                 protocol.start(new PartyConnectionFactory(logger));
     60                protocol.start(new PartyConnectionFactory(log));
    5661        }
    5762
Note: See TracChangeset for help on using the changeset viewer.