summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Branca <chewbranca@apache.org>2021-08-10 15:00:34 -0700
committerGitHub <noreply@github.com>2021-08-10 15:00:34 -0700
commita247b7db3cbf0a6a65581136d3c982022c3be279 (patch)
tree281a2db333a019cac91a6197f454ff20a439145b
parentff1e656a34c9c09ec2a1840753286043ce072871 (diff)
downloadcouchdb-a247b7db3cbf0a6a65581136d3c982022c3be279.tar.gz
Ensure maybe_close message is sent to correct process (#3700)
-rw-r--r--src/couch_index/src/couch_index.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch_index/src/couch_index.erl b/src/couch_index/src/couch_index.erl
index cfe0d9e4f..83eadc706 100644
--- a/src/couch_index/src/couch_index.erl
+++ b/src/couch_index/src/couch_index.erl
@@ -363,7 +363,7 @@ handle_info(maybe_close, State) ->
{stop, normal, State}
end;
_ ->
- erlang:send_after(?CHECK_INTERVAL, self, maybe_close),
+ erlang:send_after(?CHECK_INTERVAL, self(), maybe_close),
{noreply, State}
end;
handle_info({'DOWN', _, _, _Pid, _}, #st{mod=Mod, idx_state=IdxState}=State) ->