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