Assuming your thread has started and called:
Check to see if it's listening before calling StopCode:_Server.Start();
Code:public void Stop(bool isTerminate) { if( _Server.IsListening ) { _Server.Stop(); } }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 19
Thread: Error stop Http ListenerThreaded View
|
Click Here to Expand Forum to Full Width |