ObjectInputStream/ObjectOutputStream work not right

后端 未结 3 2086
轻奢々
轻奢々 2020-12-12 04:44

I have classes: Client, Server and Background is working with Player class. I really don\'t understand why my Client class with ObjectInputStream/ObjectOu

3条回答
  •  孤街浪徒
    2020-12-12 05:03

    You are closing the stream in a loop. You can't use a stream or any resource after it has been closed.

提交回复
热议问题