mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 22:58:22 +00:00
Windows build warning removal, be more defensive in Windows tap driver code, and clean up service start/stop in installer.
This commit is contained in:
@ -523,7 +523,7 @@ public:
|
||||
{
|
||||
TcpConnection *tc = reinterpret_cast<TcpConnection *>(*uptr);
|
||||
if (tc->writeBuf.length()) {
|
||||
long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true);
|
||||
long sent = (long)_phy.tcpSend(sock,tc->writeBuf.data(),(unsigned long)tc->writeBuf.length(),true);
|
||||
if (sent > 0) {
|
||||
tc->lastActivity = OSUtils::now();
|
||||
if ((unsigned long)sent == (unsigned long)tc->writeBuf.length()) {
|
||||
|
Reference in New Issue
Block a user