Skip to content

Commit

Permalink
Merge pull request #549 from salimkanoun/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
salimkanoun authored May 7, 2021
2 parents bab327a + 9cf3d4d commit d454865
Show file tree
Hide file tree
Showing 6 changed files with 1,322 additions and 1,170 deletions.
3 changes: 2 additions & 1 deletion BackEnd/model/monitoring/Orthanc_Monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ class Orthanc_Monitoring extends EventEmitter {
this.done = changes.Done
}


MONITORING_SERVICE_CDBURNER = "CdBurner"
}

const MONITORING_SERVICE_CDBURNER = "CdBurner"

module.exports = Orthanc_Monitoring
7 changes: 3 additions & 4 deletions BackEnd/model/monitoring/cdburner/CdBurner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ var JSZip = require("jszip")
const path = require('path');
const Queue = require('promise-queue')
const tmpPromise = require('tmp-promise')
const {withFile} = require('tmp-promise')

const Options = require('../../Options')
const orthanc_Monitoring = require('../Orthanc_Monitoring')
const Orthanc_Monitoring = require('../Orthanc_Monitoring')
const moment = require('moment')
const recursive = require("recursive-readdir");
const { OTJSForbiddenException } = require('../../../Exceptions/OTJSErrors');
Expand Down Expand Up @@ -75,7 +74,7 @@ class CdBurner {
//Create listener
this.__makeListener()
//Start monitoring service
this.monitoring.startMonitoringService(orthanc_Monitoring.MONITORING_SERVICE_CDBURNER)
this.monitoring.startMonitoringService(Orthanc_Monitoring.MONITORING_SERVICE_CDBURNER)
}

/**
Expand Down Expand Up @@ -120,7 +119,7 @@ class CdBurner {
this.monitoringStarted = false
await Options.setBurnerStarted(false)
this.__removeListener()
this.monitoring.stopMonitoringService(orthanc_Monitoring.MONITORING_SERVICE_CDBURNER)
this.monitoring.stopMonitoringService(Orthanc_Monitoring.MONITORING_SERVICE_CDBURNER)
}

/**
Expand Down
6 changes: 3 additions & 3 deletions BackEnd/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d454865

Please sign in to comment.