Check connectivity on attempt to close the connection in method `close`.

This commit is contained in:
Tristan B. Kildaire 2020-05-03 13:12:15 +02:00
parent b00f0aff10
commit 3c87878030
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,9 @@ public final class BesterClient
public void close()
{
/* Make sure we have an open connection */
endpointConnectednessCheck();
/* Whether or not the authentication succeded */
bool status = true;