Skip to content

Commit 1282418

Browse files
MB-48164: [cb_dist] Don't lose state when stopping listener
... in the start_acceptor function Change-Id: Ic062419ddf22f8555512239bdf212889ee104cdb Reviewed-on: http://review.couchbase.org/c/ns_server/+/160143 Well-Formed: Build Bot <[email protected]> Well-Formed: Restriction Checker Tested-by: Build Bot <[email protected]> Reviewed-by: Aliaksey Artamonau <[email protected]> Reviewed-by: Abhijeeth Nuthan <[email protected]>
1 parent 9774055 commit 1282418

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cb_dist.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ start_acceptor({_AddrType, Mod} = Listener,
538538
error_msg(
539539
"Accept failed for protocol ~p with reason: ~p~n"
540540
"Stacktrace: ~p", [Listener, E, ST]),
541-
remove_proto(Listener, State),
542-
start_ensure_config_timer(State)
541+
start_ensure_config_timer(remove_proto(Listener, State))
543542
end
544543
end.
545544

0 commit comments

Comments
 (0)