Revert previous comment, I should be looking at async when more awake

This commit is contained in:
UnknownShadow200 2017-05-16 00:30:31 +10:00
parent 52dc099198
commit 3cac6bcf8c

View File

@ -98,7 +98,8 @@ namespace MCGalaxy.Network {
}
static void SendCallback(IAsyncResult result) {
TcpSocket s = (TcpSocket)result.AsyncState;
// TODO: call EndSend, need to check if all data was sent or not!
/*TcpSocket s = (TcpSocket)result.AsyncState;
try {
int sent = s.socket.EndSend(result);
@ -109,7 +110,7 @@ namespace MCGalaxy.Network {
#endif
} catch (ObjectDisposedException) {
// socket was already closed by another thread.
}
}*/
}