Flush output buffers in the tap reader thread on Windows.
[tinc] / src / mingw / device.c
index aa05972..ac83d8c 100644 (file)
@@ -80,6 +80,7 @@ static DWORD WINAPI tapreader(void *bla) {
                packet.len = len;
                packet.priority = 0;
                route(myself, &packet);
+               event_flush_output();
                LeaveCriticalSection(&mutex);
        }
 }