@cryptotaxi247 / kubo / commits / b6c0ade27

FUSE: Stop treating "no errors" as an error

Konstantin Koroviev committed Mar 22, 2015 at 17:46 UTC b6c0ade2769f504e786db65b47135244c0759403
1 file changed +3 -2
fuse/mount/fuse.go
+3 -2
@@ -53,8 +53,9 @@ func (m *mount) mount() error {
53 go func() {
54 err := fs.Serve(m.fuseConn, m.filesys)
55 log.Debugf("Mounting %s -- fs.Serve returned (%s)", err)
56 - errs <- err
57 - close(errs)
56 + if err != nil {
57 + errs <- err
58 + }
59 }()
60
61 // wait for the mount process to be done, or timed out.