Skip to content

Commit 0a618c3

Browse files
committed
Fixed for methods with no callback specified for APM
1 parent 7cc77d4 commit 0a618c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/apm.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ var Instrumentation = function(core, options, callback) {
403403
self.emit('succeeded', command)
404404
}
405405

406+
// Return
407+
if(!callback) return;
408+
406409
// Return to caller
407410
callback(err, r);
408411
});

0 commit comments

Comments
 (0)