Commit d0624079 authored by Libin Lu's avatar Libin Lu Committed by GitHub

remove error try catch

parent bbbd56d4
...@@ -126,12 +126,7 @@ FCM.on = (event, callback) => { ...@@ -126,12 +126,7 @@ FCM.on = (event, callback) => {
if(event === FCMEvent.Notification){ if(event === FCMEvent.Notification){
return DeviceEventEmitter.addListener(event, async(data)=>{ return DeviceEventEmitter.addListener(event, async(data)=>{
data.finish = finish; data.finish = finish;
try{ await callback(data);
await callback(data);
} catch(err){
console.error('Notification handler err', err)
throw err;
}
if(!data._finishCalled){ if(!data._finishCalled){
data.finish(); data.finish();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment