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)
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user