Skip to content

Browser-sync doesn't quit #2095

@paulmist

Description

@paulmist

Issue details

I'm launching browser-sync via Gulp. When I ctrl-c to stop it it does appear to stop, but then when I launch again the port number increases as if it's still running (localhost:3000 increases to localhost:3002, then 3004 and so on).

If I quit my terminal it quits browser-sync as expect and the ports reset.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 3.0.3 ]
  • Node [ 14.17.1 ]
  • Npm [ 9.7.1 ]

Affected platforms

  • linux
  • windows
  • [ x ] OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • [ x ] Gulp
  • Grunt
  • CLI

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

function browserSync(done) {
	browsersync.init({		
		
		proxy: 'https://examplemampaddress',
		port: 3000,
		open: false

	});
	done();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions