File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,4 @@ export default class Daemon {
160
160
throw new Error ( 'Stop Upload not supported on Chrome OS' ) ;
161
161
}
162
162
}
163
-
164
- initUpload ( ) {
165
- this . uploading . next ( { status : this . UPLOAD_NOPE } ) ;
166
- }
167
163
}
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ const LOOPBACK_HOST = `${PROTOCOL.HTTPS}://localhost`;
43
43
const LOOKUP_PORT_START = 8991 ;
44
44
const LOOKUP_PORT_END = 9000 ;
45
45
let orderedPluginAddresses = [ LOOPBACK_ADDRESS , LOOPBACK_HOST ] ;
46
+ let driversRequested = false ;
46
47
47
48
const CANT_FIND_AGENT_MESSAGE = 'Arduino Create Agent cannot be found' ;
48
49
@@ -179,8 +180,11 @@ export default class SocketDaemon extends Daemon {
179
180
180
181
this . socket . on ( 'connect' , ( ) => {
181
182
// On connect download windows drivers which are indispensable for detection of boards
182
- this . downloadTool ( 'windows-drivers' , 'latest' , 'arduino' ) ;
183
- this . downloadTool ( 'bossac' , '1.7.0' , 'arduino' ) ;
183
+ if ( ! driversRequested ) {
184
+ this . downloadTool ( 'windows-drivers' , 'latest' , 'arduino' ) ;
185
+ this . downloadTool ( 'bossac' , '1.7.0' , 'arduino' ) ;
186
+ driversRequested = false ;
187
+ }
184
188
185
189
this . initSocket ( ) ;
186
190
You can’t perform that action at this time.
0 commit comments