Reconnect now can have a specified timeout
This commit is contained in:
parent
16c8386ae1
commit
4a80c2c0b8
|
@ -219,7 +219,7 @@ open class Client<CONNECTION : Connection>(
|
|||
* @throws ClientException if there are misc errors
|
||||
*/
|
||||
@Suppress("DuplicatedCode")
|
||||
suspend fun reconnect() {
|
||||
suspend fun reconnect(connectionTimeoutSec: Int = this.connectionTimeoutSec) {
|
||||
connect(
|
||||
remoteAddress = address,
|
||||
remoteAddressString = addressString,
|
||||
|
|
Loading…
Reference in New Issue