|
|
@@ -256,6 +256,13 @@ namespace ETModel
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ // 没有数据需要发送
|
|
|
+ if (this.sendBuffer.Length == 0)
|
|
|
+ {
|
|
|
+ this.isSending = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
this.isSending = true;
|
|
|
|
|
|
@@ -305,13 +312,6 @@ namespace ETModel
|
|
|
this.sendBuffer.RemoveFirst();
|
|
|
}
|
|
|
|
|
|
- // 没有数据需要发送
|
|
|
- if (this.sendBuffer.Length == 0)
|
|
|
- {
|
|
|
- this.isSending = false;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
this.StartSend();
|
|
|
}
|
|
|
}
|