Stopping HTTPListener is in netcore different
This commit is contained in:
parent
3e79b425a5
commit
1a33d2ef0a
@ -144,7 +144,10 @@ namespace BlubbFish.Utils.IoT.Bots {
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
this.httplistener.Stop();
|
||||
if(this.httplistener.IsListening) {
|
||||
this.httplistener.Stop();
|
||||
}
|
||||
|
||||
this.httplistener.Close();
|
||||
if(this.databackend != null) {
|
||||
this.databackend.Dispose();
|
||||
|
Loading…
Reference in New Issue
Block a user