Skip to content

Commit

Permalink
fix(TranslateService): delete pending observable onComplete instead o…
Browse files Browse the repository at this point in the history
…f onNext

Fixes #39
  • Loading branch information
ocombe committed Feb 21, 2016
1 parent c3080d5 commit f452c65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ export class TranslateService {
this.translations[lang] = res;
this.updateLangs();
this.pending = undefined;
}, (err: any) => {
throw err;
}, () => {
this.pending = undefined;
});

return this.pending;
Expand Down

0 comments on commit f452c65

Please sign in to comment.