diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index bb6d53bc8f..086a4afb5a 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -320,19 +320,15 @@ int RageFileObjDirect::Flush() if( !write_buf.size() ) return 0; - CHECKPOINT; int ret = retried_write( fd, write_buf.data(), write_buf.size() ); - CHECKPOINT; if( ret == -1 ) { LOG->Warn("Error writing %s: %s", this->path.c_str(), strerror(errno) ); SetError( strerror(errno) ); } - CHECKPOINT; write_buf.erase(); write_buf.reserve( BUFSIZE ); - CHECKPOINT; return ret; }