Commit 9ad0fcb5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b19b1ab2
...@@ -183,7 +183,7 @@ using std::max; ...@@ -183,7 +183,7 @@ using std::max;
using std::vector; using std::vector;
#define TRACE 0 #define TRACE 1
#if TRACE #if TRACE
# define trace(format, ...) log::Debugf(format, ##__VA_ARGS__) # define trace(format, ...) log::Debugf(format, ##__VA_ARGS__)
#else #else
...@@ -314,8 +314,6 @@ error _Conn::close() { ...@@ -314,8 +314,6 @@ error _Conn::close() {
if (f == nil) if (f == nil)
break; // all closed break; // all closed
trace("picked %s\topening: %d", v(f), opening);
// if fileh was "opening" - wait for the open to complete before calling close. // if fileh was "opening" - wait for the open to complete before calling close.
if (opening) { if (opening) {
f->_openReady.recv(); f->_openReady.recv();
...@@ -333,7 +331,7 @@ error _Conn::close() { ...@@ -333,7 +331,7 @@ error _Conn::close() {
// wait for f close to complete, as it might be that f.close was called // wait for f close to complete, as it might be that f.close was called
// simultaneously to us or just before. f is removed from // simultaneously to us or just before. f is removed from
// wconn.filehTab only after close completes. // wconn.filehTab only after close is complete.
f->_closedq.recv(); f->_closedq.recv();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment