We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27f2cd2 commit 95be348Copy full SHA for 95be348
1 file changed
main.go
@@ -115,8 +115,7 @@ func (s *server) Logout(c context.Context, req *pb.LogoutRequest) (*pb.LogoutRep
115
}, nil
116
}
117
instance.NoRestart = true
118
- process := instance.Cmd.Process
119
- err := process.Kill()
+ err := KillWrapper(instance.Id)
120
if err != nil {
121
return &pb.LogoutReply{
122
Header: &pb.ReplyHeader{
@@ -502,7 +501,7 @@ func main() {
502
501
WMDispatcher = NewDispatcher()
503
504
Instances = make([]*WrapperInstance, 0)
505
- if _, err := os.Stat("data/storefront_ids.json"); !errors.Is(err, os.ErrNotExist) {
+ if _, err := os.Stat("data/instances.json"); !errors.Is(err, os.ErrNotExist) {
506
instancesInFile := LoadInstance()
507
ShouldStartInstances = len(instancesInFile)
508
for _, inst := range instancesInFile {
0 commit comments