mirror of
https://github.com/buildbot/buildbot.git
synced 2021-05-20 10:47:20 +03:00
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:
@@ -36,8 +36,5 @@ class LocalWorker(WorkerBase):
|
|||||||
res = yield master.workers.newConnection(conn, self.name)
|
res = yield master.workers.newConnection(conn, self.name)
|
||||||
if res:
|
if res:
|
||||||
yield self.parent.attached(conn)
|
yield self.parent.attached(conn)
|
||||||
|
# detached() will be called automatically on connection disconnection which is
|
||||||
@defer.inlineCallbacks
|
# invoked from the master side when the AbstarctWorker.stopService() is called.
|
||||||
def stopService(self):
|
|
||||||
yield self.parent.detached()
|
|
||||||
yield WorkerBase.stopService(self)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user