Use os.Create so that the file will be fully written on every startup
parent
b770f341d0
commit
2f3c14c3cb
2
mpd.go
2
mpd.go
|
@ -24,7 +24,7 @@ type MPD struct {
|
||||||
func init() {
|
func init() {
|
||||||
log.Println("mpd.go loading..")
|
log.Println("mpd.go loading..")
|
||||||
|
|
||||||
f, err := os.OpenFile(config.GetString("mpd.config"), os.O_RDWR|os.O_CREATE, 0755)
|
f, err := os.Create(config.GetString("mpd.config"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue