fix: tlog actor needs to be cancelled when worker shutdown

This commit is contained in:
Evan Tschannen 2017-06-02 17:56:47 -07:00
parent 766dc23e26
commit cefaa2391d
1 changed files with 1 additions and 0 deletions

View File

@ -815,6 +815,7 @@ ACTOR Future<Void> workerServer( Reference<ClusterConnectionFile> connFile, Refe
endRole(interf.id(), "Worker", "WorkerError", ok, e);
errorForwarders.clear(false);
tlog = Void();
if (e.code() != error_code_actor_cancelled) { // We get cancelled e.g. when an entire simulation times out, but in that case we won't be restarted and don't need to wait for shutdown
stopping.send(Void());