@inlineCallbacks
def send_ping(self):
    if self.xmpp_client.xmlstream:
        (yield self.pinger.ping(self.jid))
@inlineCallbacks
def send_ping(self):
    if self.xmpp_client.xmlstream:
        (yield self.pinger.ping(self.jid))