def _on_server_disconnect(self, exception):
self._protocol = None<EOL>if self._on_disconnect_callback_func and callable(self._on_disconnect_callback_func):<EOL><INDENT>self._on_disconnect_callback_func(exception)<EOL><DEDENT>if self._reconnect:<EOL><INDENT>self._reconnect_cb()<EOL><DEDENT>
Handle server disconnection.