public boolean isListening() {
            return this.listeningThread.get() != null;
        }
Checks the connection, and re-opens it if necessary.

@return true if the connection is now alive, false otherwise
common/src/main/java/me/lucko/luckperms/common/messaging/postgres/PostgresMessenger.java