private synchronized void handleFinishSendingPayload ( PayloadData payload , boolean cancelled , String errorMessage , int responseCode , JSONObject responseData ) { sendingFlag = false ; // mark sender as 'not busy' try { if ( listener != null ) { listener . onFinishSending ( this , payload , cancelled , errorMessage , responseCode , responseData ) ; } } catch ( Exception e ) { ApptentiveLog . e ( e , "Exception while notifying payload listener" ) ; logException ( e ) ; } }
Executed when we re done with the current payload