| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 625ed70 commit 4a1cb3d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,15 +10,11 @@ function sendInspectorCommand(cb, onError) { | |||
| 10 | 10 | if (!hasInspector) return onError(); | |
| 11 | 11 | const inspector = require('inspector'); | |
| 12 | 12 | if (session === undefined) session = new inspector.Session(); | |
| 13 | + session.connect(); | ||
| 13 | 14 | try { | |
| 14 | - session.connect(); | ||
| 15 | - try { | ||
| 16 | - return cb(session); | ||
| 17 | - } finally { | ||
| 18 | - session.disconnect(); | ||
| 19 | - } | ||
| 20 | - } catch { | ||
| 21 | - return onError(); | ||
| 15 | + return cb(session); | ||
| 16 | + } finally { | ||
| 17 | + session.disconnect(); | ||
| 22 | 18 | } | |
| 23 | 19 | } | |
| 24 | 20 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments