Skip to content

Commit 95be348

Browse files
fix: the ready value is incorrect when there is no account
1 parent 27f2cd2 commit 95be348

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ func (s *server) Logout(c context.Context, req *pb.LogoutRequest) (*pb.LogoutRep
115115
}, nil
116116
}
117117
instance.NoRestart = true
118-
process := instance.Cmd.Process
119-
err := process.Kill()
118+
err := KillWrapper(instance.Id)
120119
if err != nil {
121120
return &pb.LogoutReply{
122121
Header: &pb.ReplyHeader{
@@ -502,7 +501,7 @@ func main() {
502501
WMDispatcher = NewDispatcher()
503502

504503
Instances = make([]*WrapperInstance, 0)
505-
if _, err := os.Stat("data/storefront_ids.json"); !errors.Is(err, os.ErrNotExist) {
504+
if _, err := os.Stat("data/instances.json"); !errors.Is(err, os.ErrNotExist) {
506505
instancesInFile := LoadInstance()
507506
ShouldStartInstances = len(instancesInFile)
508507
for _, inst := range instancesInFile {

0 commit comments

Comments
 (0)