Resetting datagram buffer if on android (https://issues.jboss.org/browse/JGRP-1736)