Commit 970c91583716ce49e23e1a89eb78103d6ecfdfa9
Exit more
cel committed on 7/25/2017, 4:20:13 AMParent: ee34e66d5ddf8e273618eb825f4dcdc5b7fac638
Files changed
lib/server.js | changed |
lib/server.js | |||
---|---|---|---|
@@ -183,10 +183,9 @@ | |||
183 | 183 … | var server = createServer(sbot, port, host, cb, opt); | |
184 | 184 … | ||
185 | 185 … | var close = function () { | |
186 | 186 … | console.error("Server connection lost. Shutting down"); | |
187 | - sbot.close(); | ||
188 | - server.close(); | ||
187 … | + process.exit(1); | ||
189 | 188 … | }; | |
190 | 189 … | ||
191 | 190 … | sbot.on('closed', close); | |
192 | 191 … | }; |
Built with git-ssb-web