char *dp_name;
int retval;
+ /* Clean up vestiges of any previous secchan. */
+ rconn_disconnect(br->rconn);
+ if (br->secchan) {
+ process_destroy(br->secchan);
+ br->secchan = NULL;
+ }
+
+ /* Bail out if we've failed to start secchan too many times. */
if (br->sc_retries >= 5) {
VLOG_ERR("%s: restarted secchan maximum number of %d times, disabling",
br->name, br->sc_retries);
}
br->sc_retries++;
- /* Clean up vestiges of any previous secchan. */
- rconn_disconnect(br->rconn);
- if (br->secchan) {
- process_destroy(br->secchan);
- br->secchan = NULL;
- }
-
if (!br->controller) {
/* Create socketpair for communicating with secchan subprocess. */
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sockets)) {