<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _wait_response(self, message):
 """ Private function to get responses from the server. :param message: the received message """

        if message is None or message.code != defines.Codes.CONTINUE.number:
            self.queue.put(message)