MidLevel / Ruffles

Lightweight and fully managed reliable UDP library.
MIT License
212 stars 28 forks source link

Stop is now working on a Running socket. #7

Closed poettlr closed 4 years ago

poettlr commented 4 years ago

I added a missing ! to the RufflesSocket.Stop() IsRunning check. Stop is no longer throwing a Cannot stop a non running socket on a running connection.

Also added a null check during Disconnect all clients.

Note: Editing the file directly in github unified the line endings to Windows Line Endings, (might not be intended)

TwoTenPvP commented 4 years ago

This commit is indeed correct. Sorry for the huge delay.

I do not use Windows Line Endings as I personally only use Unix operating systems. I will be commiting this change to master shortly.