|
Line 0
Link Here
|
|
|
1 |
--- apps/streaming/java/src/net/i2p/client/streaming/impl/I2PSocketManagerFull.java.orig 2018-06-26 11:12:11 UTC |
| 2 |
+++ apps/streaming/java/src/net/i2p/client/streaming/impl/I2PSocketManagerFull.java |
| 3 |
@@ -28,6 +28,7 @@ import net.i2p.client.streaming.I2PServerSocket; |
| 4 |
import net.i2p.client.streaming.I2PSocket; |
| 5 |
import net.i2p.client.streaming.I2PSocketManager; |
| 6 |
import net.i2p.client.streaming.I2PSocketOptions; |
| 7 |
+import net.i2p.client.streaming.RouterRestartException; |
| 8 |
import net.i2p.crypto.SigAlgo; |
| 9 |
import net.i2p.crypto.SigType; |
| 10 |
import net.i2p.data.Certificate; |
| 11 |
@@ -354,7 +355,7 @@ public class I2PSocketManagerFull implements I2PSocket |
| 12 |
* @throws ConnectException (since 0.9.17; I2PServerSocket interface always declared it) |
| 13 |
* @throws SocketTimeoutException if a timeout was previously set with setSoTimeout and the timeout has been reached. |
| 14 |
*/ |
| 15 |
- public I2PSocket receiveSocket() throws I2PException, ConnectException, SocketTimeoutException { |
| 16 |
+ public I2PSocket receiveSocket() throws I2PException, RouterRestartException, ConnectException, SocketTimeoutException { |
| 17 |
verifySession(); |
| 18 |
Connection con = _connectionManager.getConnectionHandler().accept(_connectionManager.getSoTimeout()); |
| 19 |
I2PSocketFull sock = new I2PSocketFull(con, _context); |