Skip to content

Commit

Permalink
fix: ignore two calls with undefined origin
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Dec 2, 2024
1 parent 340c7a8 commit ab4ba76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/puter-js/src/services/Filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export class FilesystemService extends putility.concepts.Service {
const svc_apiAccess = this._.context.services.get('api-access');
const api_info = svc_apiAccess.get_api_info();

if ( api_info.api_origin === undefined ) {
// This will get called again later with updated information
return;
}

this.socket = io(api_info.api_origin, {
auth: { auth_token: api_info.auth_token }
});
Expand Down

0 comments on commit ab4ba76

Please sign in to comment.