Changeset 90cc71d for apps/ministreaming


Ignore:
Timestamp:
Jul 20, 2013 11:53:41 AM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4e00eaf
Parents:
3b46acc2 (diff), 554a3a6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

propagate from branch 'i2p.i2p.zzz.test2' (head d80f8632ef0a2aa350eee9a38ba6a4c56471f5bc)

to branch 'i2p.i2p' (head e8b712c826e44211217f06eb3a4da2703323a42f)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketOptionsImpl.java

    r3b46acc2 r90cc71d  
    9494    }
    9595   
     96    protected static double getDouble(Properties opts, String name, double defaultVal) {
     97        if (opts == null) return defaultVal;
     98        String val = opts.getProperty(name);
     99        if (val == null) {
     100            return defaultVal;
     101        } else {
     102            try {
     103                return Double.parseDouble(val);
     104            } catch (NumberFormatException nfe) {
     105                return defaultVal;
     106            }
     107        }
     108    }
     109   
    96110    /**
    97111     * How long we will wait for the ACK from a SYN, in milliseconds.
Note: See TracChangeset for help on using the changeset viewer.