diff --git a/telldus-core/common/Socket_win.cpp b/telldus-core/common/Socket_win.cpp index 023b5e94..f78b274d 100644 --- a/telldus-core/common/Socket_win.cpp +++ b/telldus-core/common/Socket_win.cpp @@ -145,7 +145,7 @@ void Socket::write(const std::wstring &msg){ d->connected = false; return; } - fSuccess = GetOverlappedResult(d->hPipe, &oOverlap, &bytesWritten, false); + fSuccess = GetOverlappedResult(d->hPipe, &oOverlap, &bytesWritten, TRUE); CloseHandle(writeEvent); if (!fSuccess) { CancelIo(d->hPipe);