Skip to content

Commit 1aff50a

Browse files
committed
Revert "Fix not sending event when native crash happens"
This reverts commit d79b04c.
1 parent 8fdfbe4 commit 1aff50a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/Sentry.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export class Sentry {
3434
event => {
3535
Sentry._lastEvent = event;
3636
if (Sentry._eventSentSuccessfully) Sentry._eventSentSuccessfully(event);
37-
if (Sentry._internalEventSent) Sentry._internalEventSent();
3837
}
3938
);
4039
}
@@ -181,8 +180,4 @@ export class Sentry {
181180
static _captureEvent(event) {
182181
if (Sentry.isNativeClientAvailable()) Sentry._nativeClient.captureEvent(event);
183182
}
184-
185-
static _setInternalEventSent(callback) {
186-
Sentry._internalEventSent = callback;
187-
}
188183
}

lib/raven-plugin.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
'use strict';
2121
import {NativeModules} from 'react-native';
22-
import {Sentry} from './Sentry';
2322

2423
function wrappedCallback(callback) {
2524
function dataCallback(data, original) {
@@ -136,9 +135,7 @@ function reactNativePlugin(Raven, options, internalDataCallback) {
136135
}
137136
Raven.captureException(error, captureOptions);
138137
// We always want to tunnel errors to the default handler
139-
Sentry._setInternalEventSent(() => {
140-
defaultHandler(error, isFatal);
141-
});
138+
defaultHandler(error, isFatal);
142139
});
143140
}
144141

0 commit comments

Comments
 (0)