diff --git a/fdbcli/fdbcli.actor.cpp b/fdbcli/fdbcli.actor.cpp index 7aebb1efad..280b420b86 100644 --- a/fdbcli/fdbcli.actor.cpp +++ b/fdbcli/fdbcli.actor.cpp @@ -3195,10 +3195,10 @@ ACTOR template Future stopNetworkAfter(Future what) { try { T t = wait(what); - g_network->stop(); + API->stopNetwork(); return t; } catch (...) { - g_network->stop(); + API->stopNetwork(); throw; } } @@ -4685,7 +4685,7 @@ int main(int argc, char** argv) { Future cliFuture = runCli(opt); Future timeoutFuture = opt.exit_timeout ? timeExit(opt.exit_timeout) : Never(); auto f = stopNetworkAfter(success(cliFuture) || timeoutFuture); - runNetwork(); + API->runNetwork(); if (cliFuture.isReady()) { return cliFuture.get();