This repository was archived by the owner on Apr 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -339,19 +339,16 @@ Debuglet.prototype.completeBreakpoint_ = function(breakpoint) {
339339 var that = this ;
340340
341341 that . logger_ . info ( '\tupdating breakpoint data on server' , breakpoint . id ) ;
342- // TODO: in case of transient errors, retry the update operation
343- // Put in the completed breakpoints map only when the update successfully
344- // completes. Otherwise - we refuse to set the breakpoint, but the server
345- // has never seen the update.
346342 that . debugletApi_ . updateBreakpoint ( breakpoint , function ( err /*, body*/ ) {
347343 if ( err ) {
348344 that . logger_ . error ( 'Unable to complete breakpoint on server' , err ) ;
345+ } else {
346+ // TODO(ofrobots): breakpoint may be holding on to a lot of data. We only
347+ // need to remember the breakpoint id.
348+ that . completedBreakpointMap_ [ breakpoint . id ] = breakpoint ;
349+ that . removeBreakpoint_ ( breakpoint ) ;
349350 }
350351 } ) ;
351- // TODO(ofrobots): breakpoint may be holding on to a lot of data. We only
352- // need to remember the breakpoint id.
353- that . completedBreakpointMap_ [ breakpoint . id ] = breakpoint ;
354- that . removeBreakpoint_ ( breakpoint ) ;
355352} ;
356353
357354
You can’t perform that action at this time.
0 commit comments