Reconnect now can have a specified timeout

This commit is contained in:
Robinson 2023-08-04 23:32:00 -06:00
parent 16c8386ae1
commit 4a80c2c0b8
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 1 additions and 1 deletions

View File

@ -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,