Don't work too much

This commit is contained in:
angt
2016-01-17 09:40:56 +01:00
parent 4a5d07ec45
commit 33356d5d35

View File

@@ -1433,7 +1433,6 @@ int main (int argc, char **argv)
} }
} }
while (1) {
buffer_shift(&tun.write); buffer_shift(&tun.write);
if _0_(gt_decrypt(&ctx, &tun.write, &sock.read)) { if _0_(gt_decrypt(&ctx, &tun.write, &sock.read)) {
@@ -1441,6 +1440,7 @@ int main (int argc, char **argv)
goto restart; goto restart;
} }
while (1) {
size_t size = buffer_read_size(&tun.write); size_t size = buffer_read_size(&tun.write);
if (!size) if (!size)