diff options
| -rw-r--r-- | netfs/fuse/fuseFiles.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/fuse/fuseFiles.cpp b/netfs/fuse/fuseFiles.cpp index 5e155f2..1c488ba 100644 --- a/netfs/fuse/fuseFiles.cpp +++ b/netfs/fuse/fuseFiles.cpp @@ -176,6 +176,7 @@ namespace NetFS {  			if (fcr->Async) {  				waitOnWriteRangeAndThen<void>(s, o, of, [o, s, bytes, &of, remote](const auto & key) {  					auto p = std::make_shared<OpenFile::WriteState>(); +					of->bg.insert({key, p});  					remote->writeAsync(  							o, safe {s}, std::make_pair(bytes, bytes + s),  							[p, of, key]() { @@ -190,7 +191,6 @@ namespace NetFS {  									of->bg.erase(key);  								}  							}); -					of->bg.insert({key, p});  				});  			}  			else {  | 
