File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,6 @@ export class CPMConnector extends TypedEmitter<Events> {
255255
256256 this . logger . info ( `${ EOL } ${ EOL } \t\x1b[33m${ this . config . id } connected to ${ this . cpmId } \x1b[0m${ EOL } ` ) ;
257257
258- await this . setLoadCheckMessageSender ( ) ;
259-
260258 StringStream . from ( duplex . input as Readable )
261259 . JSONParse ( )
262260 . map ( async ( message : EncodedControlMessage ) => {
@@ -299,6 +297,8 @@ export class CPMConnector extends TypedEmitter<Events> {
299297 this . communicationStream = new StringStream ( ) . JSONStringify ( ) . resume ( ) ;
300298 this . communicationStream . pipe ( duplex . output ) ;
301299
300+ await this . setLoadCheckMessageSender ( ) ;
301+
302302 this . communicationStream . on ( "pause" , ( ) => {
303303 this . logger . warn ( "Communication stream paused" ) ;
304304 } ) ;
You can’t perform that action at this time.
0 commit comments