simpler wait-for-port

This commit is contained in:
Rich Harris
2018-03-04 11:25:59 -05:00
committed by GitHub
parent 4d79cb81ed
commit bdb9d49187
4 changed files with 25 additions and 26 deletions

View File

@@ -144,7 +144,7 @@ export default async function dev() {
deferreds.client.promise.then(() => {
function restart() {
wait_for_port(3000, deferreds.server.fulfil); // TODO control port
wait_for_port(3000).then(deferreds.server.fulfil); // TODO control port
}
if (proc) {