Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_restart 无法使用 #425

Closed
SK-415 opened this issue Nov 17, 2020 · 2 comments
Closed

set_restart 无法使用 #425

SK-415 opened this issue Nov 17, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@SK-415
Copy link

SK-415 commented Nov 17, 2020

环境信息
请根据实际使用环境修改以下信息
go-cqhttp版本: v0.9.31-fix1
运行环境: windows_amd64
连接方式: 反向WS

bug内容
请在这里详细描述bug的内容

调用 set_restart api 报错. 内容如下:

[2020-11-18 01:14:45] [INFO]: 正在重启中...
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x78 pc=0x9f337e]

goroutine 1 [running]:
net/http.(*Server).Shutdown(0x0, 0x11ba260, 0xc00050ff20, 0x0, 0x0)
        /usr/local/go/src/net/http/server.go:2700 +0x5e
github.com/Mrs4s/go-cqhttp/server.(*httpServer).ShutDown(0x16ae6b0)
        /github/workspace/server/http.go:526 +0xba
main.main()
        /github/workspace/main.go:331 +0xe9c

复现方法
请在这里分步骤的描述如何复现这个bug

调用 set_restart api

@SK-415 SK-415 changed the title set set_restart 无法使用 Nov 17, 2020
@Mrs4s
Copy link
Owner

Mrs4s commented Nov 17, 2020

@Ink-33

@Mrs4s Mrs4s added the bug Something isn't working label Nov 17, 2020
@Ink-33
Copy link
Contributor

Ink-33 commented Nov 17, 2020

在修了在修了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants