File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,12 @@ export default class ChromeOsDaemon extends Daemon {
114
114
closeAllPorts ( ) {
115
115
const devices = this . devicesList . getValue ( ) . serial ;
116
116
devices . forEach ( device => {
117
- this . closeSerialMonitor ( device . Name ) ;
117
+ this . channel . postMessage ( {
118
+ command : 'closePort' ,
119
+ data : {
120
+ name : device . Name
121
+ }
122
+ } ) ;
118
123
} ) ;
119
124
}
120
125
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export default class SocketDaemon extends Daemon {
254
254
closeAllPorts ( ) {
255
255
const devices = this . devicesList . getValue ( ) . serial ;
256
256
devices . forEach ( device => {
257
- this . closeSerialMonitor ( device . Name ) ;
257
+ this . socket . emit ( 'command' , `close ${ device . Name } ` ) ;
258
258
} ) ;
259
259
}
260
260
You can’t perform that action at this time.
0 commit comments