Skip to content

Commit 4491b3f

Browse files
incoming-thMickael
andauthored
resolve #5461 (#5612)
Co-authored-by: Mickael <mickael.desmousseaux@rapid4cloud.com>
1 parent b0d4750 commit 4491b3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pause.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async function parseInput(cmd) {
105105
recorder.session.start('pause')
106106
if (cmd === '') next = true
107107
if (!cmd || cmd === 'resume' || cmd === 'exit') {
108-
finish()
108+
if (typeof finish === 'function') finish()
109109
recorder.session.restore('pause')
110110
rl.close()
111111
history.save()

0 commit comments

Comments
 (0)