Skip to content

Commit 6c2585c

Browse files
committed
Don't recreate saved workspace
1 parent c55e200 commit 6c2585c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/msf/ui/console/driver.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,7 @@ def load_config(path=nil)
392392
when 'activeworkspace'
393393
if framework.db.active
394394
workspace = framework.db.find_workspace(v)
395-
if workspace
396-
framework.db.workspace = workspace
397-
else
398-
framework.db.workspace = framework.db.add_workspace(v)
399-
end
395+
framework.db.workspace = workspace if workspace
400396
end
401397
end
402398
}

0 commit comments

Comments
 (0)