File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ class FloatClient extends EventEmitter {
36
36
37
37
this . _client . on ( 'logOnResponse' , response => {
38
38
if ( response . eresult !== EResult . OK ) {
39
- if ( this . debug ) { console . log ( '[login failed]' ) }
39
+ if ( this . debug ) {
40
+ console . log ( response . eresult )
41
+ console . log ( '[login failed]' )
42
+ }
40
43
return this . emit ( 'disconnected' )
41
44
}
42
45
@@ -113,7 +116,12 @@ class FloatClient extends EventEmitter {
113
116
if ( this . debug ) { console . log ( '[message]' , type ) }
114
117
115
118
if ( type === 4004 ) { this . _gcLoaded ( ) }
116
- if ( type === 9157 ) { this . _decodeFloat ( header , buffer ) }
119
+ if ( type === 9157 ) {
120
+ this . _decodeFloat ( header , buffer )
121
+ }
122
+ else {
123
+ if ( this . _defer ) { return this . _defer . resolve ( null ) }
124
+ }
117
125
if ( callback ) { callback ( header , buffer ) }
118
126
}
119
127
You can’t perform that action at this time.
0 commit comments