Skip to content

Instantly share code, notes, and snippets.

@tmontney
Created July 30, 2017 21:38
Show Gist options
  • Save tmontney/08a0d15415986a9ab5fd5b350efc2fbd to your computer and use it in GitHub Desktop.
Save tmontney/08a0d15415986a9ab5fd5b350efc2fbd to your computer and use it in GitHub Desktop.
Private Sub Server_Close(sender As Object, e As EventArgs) Handles MyBase.Disposed
If svr IsNot Nothing AndAlso svr.IsListening Then svr.Stop()
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment