Compare commits
1
Commits
v1.3.0
...
51bfd52095
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51bfd52095 |
@@ -123,14 +123,14 @@ namespace BlubbFish.Utils.IoT.Connector.Data {
|
||||
#region IDisposable Support
|
||||
private Boolean disposedValue = false;
|
||||
|
||||
public override Boolean IsConnected => this.client != null ? this.client.IsConnected : false;
|
||||
public override Boolean IsConnected => this.client != null && this.client.IsConnected;
|
||||
|
||||
protected virtual void Dispose(Boolean disposing) {
|
||||
if(!this.disposedValue) {
|
||||
if(disposing) {
|
||||
try {
|
||||
this.connectionWatcherRunning = false;
|
||||
while(this.connectionWatcher.IsAlive) {
|
||||
while(this.connectionWatcher != null && this.connectionWatcher.IsAlive) {
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
this.connectionWatcher = null;
|
||||
|
||||
Reference in New Issue
Block a user