Don't unsubscribe when subscriber callback throws (#3401)

This commit is contained in:
Jaco Greeff 2016-11-12 22:26:50 +01:00 committed by Gav Wood
parent 6b33899239
commit c57738b9b6
2 changed files with 0 additions and 2 deletions

View File

@ -309,7 +309,6 @@ export default class Contract {
try { try {
subscriptions[idx].callback(null, this.parseEventLogs(logs)); subscriptions[idx].callback(null, this.parseEventLogs(logs));
} catch (error) { } catch (error) {
this.unsubscribe(idx);
console.error('_sendSubscriptionChanges', error); console.error('_sendSubscriptionChanges', error);
} }
}); });

View File

@ -107,7 +107,6 @@ export default class Manager {
callback(error, data); callback(error, data);
} catch (error) { } catch (error) {
console.error(`Unable to update callback for subscriptionId ${subscriptionId}`, error); console.error(`Unable to update callback for subscriptionId ${subscriptionId}`, error);
this.unsubscribe(subscriptionId);
} }
} }