File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ class Widget extends Component {
343343 // storage.clear();
344344 // Store the received session_id to storage
345345
346- storeLocalSession ( storage , SESSION_NAME , remoteId ) ;
346+ storeLocalSession ( storage , SESSION_NAME , localId ) ;
347347 dispatch ( pullSession ( ) ) ;
348348 if ( sendInitPayload ) {
349349 this . trySendInitPayload ( ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const ConnectedWidget = forwardRef((props, ref) => {
3434 console . log ( 'is it init' , this . socket !== null && this . socket . connected ) ;
3535 console . log ( 'marker' , this . marker ) ;
3636 console . log ( 'socket' , this . socket ) ;
37- return this . socket !== null ;
37+ return this . socket !== null && this . socket . connected ;
3838 }
3939
4040 on ( event , callback ) {
You can’t perform that action at this time.
0 commit comments