|
|
@ -49,7 +49,7 @@ export default class TorrentManager extends InternalService |
|
|
|
/** |
|
|
|
* Boot the Torrent Manager service |
|
|
|
*/ |
|
|
|
public async boot() { |
|
|
|
public override async boot() { |
|
|
|
this.log("Booting the torrent manager"); |
|
|
|
await super.boot(); |
|
|
|
await this.loadDisks(); |
|
|
@ -58,14 +58,14 @@ export default class TorrentManager extends InternalService |
|
|
|
/** |
|
|
|
* Link to other services |
|
|
|
*/ |
|
|
|
public link(app: Microservice) { |
|
|
|
public override link(app: Microservice) { |
|
|
|
this.torrentIpc = app.service<TorrentIpc>("Torrent"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Start the service |
|
|
|
*/ |
|
|
|
public start() { |
|
|
|
public override start() { |
|
|
|
this.torrentIpc.on("connected", this.onConnect.bind(this)); |
|
|
|
} |
|
|
|
|
|
|
|