Defer unix-socket remove only if a unix-socket actually being used.
This commit is contained in:
parent
3685907891
commit
e9dc53e542
@ -28,11 +28,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if !strings.ContainsRune(*listenAddress, ':') {
|
||||
os.Remove(*listenAddress)
|
||||
defer os.Remove(*listenAddress)
|
||||
}
|
||||
}()
|
||||
|
||||
captcha.Init(*captchaExpire)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user