worker: Do not call detached() from LocalWorker

This is handled automatically by the master-side AbstractWorker
shutdown.

AbstractWorker.stopService() -> disconnect() -> _disconnect() ->
ull.Connection.loseConnection() -> notifyDisconnected() ->
AbstractWorker.detached()
This commit is contained in:
Povilas Kanapickas
2021-05-14 04:53:31 +03:00
parent 4b5d7c6f58
commit 54e0456409

View File

@@ -36,8 +36,5 @@ class LocalWorker(WorkerBase):
res = yield master.workers.newConnection(conn, self.name)
if res:
yield self.parent.attached(conn)
@defer.inlineCallbacks
def stopService(self):
yield self.parent.detached()
yield WorkerBase.stopService(self)
# detached() will be called automatically on connection disconnection which is
# invoked from the master side when the AbstarctWorker.stopService() is called.