Refactoring

This commit is contained in:
Scott E. Graves
2019-06-06 21:23:20 -05:00
parent 5d4e26d7e5
commit 1dc99567f3
2 changed files with 10 additions and 8 deletions

View File

@@ -24,8 +24,6 @@ class MountItems extends IPCContainer {
this.setRequestHandler(Constants.IPC_Detect_Mounts_Reply, this.onDetectMountsReply);
this.setRequestHandler(Constants.IPC_Mount_Drive_Reply, this.onMountDriveReply);
this.setRequestHandler(Constants.IPC_Unmount_Drive_Reply, this.onUnmountDriveReply);
this.detectMounts();
}
retryIntervals = {};
@@ -56,6 +54,10 @@ class MountItems extends IPCContainer {
}
};
componentDidMount() {
this.detectMounts();
}
componentWillUnmount() {
for (const provider in this.state.RetryItems) {
if (this.state.RetryItems.hasOwnProperty(provider)) {