Skip to content

Commit

Permalink
Remove try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 29, 2019
1 parent 8013f1f commit 000730e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/sagas/connectSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,7 @@ function* connectSaga(directLine) {

return () => {
activitySubscription.unsubscribe();

try {
// TODO: [P3] DirectLineJS will throw an error saying "conversation ended", it seems redundant
directLine.end();
} catch (err) {}
directLine.end();
};
} else if (
connectionStatus === ENDED
Expand Down

0 comments on commit 000730e

Please sign in to comment.