func OffButtonCloseListener(rpc1 *OpencxAuctionRPC, listener net.Listener) {
	for {
		<-rpc1.OffButton
		logging.Infof("Got stop request, closing tcp listener")
		if err := listener.Close(); err != nil {
			logging.Errorf("Error closing listener: \n%s", err)
		}
		return
	}
}
// OffButtonCloseListener waits for the off button to close the listener
OffButtonCloseListener waits for the off button to close the listener
// OffButtonCloseListener waits for the off button to close the listener
func OffButtonCloseListener(rpc1 *OpencxAuctionRPC, listener net.Listener) {
	for {
		<-rpc1.OffButton
		logging.Infof("Got stop request, closing tcp listener")
		if err := listener.Close(); err != nil {
			logging.Errorf("Error closing listener: \n%s", err)
		}
		return
	}
}
func OffButtonCloseListener ( rpc1 * OpencxAuctionRPC , listener net . Listener ) { for { <- rpc1 . OffButton logging . Infof ( " " ) if err := listener . Close ( ) ; err != nil { logging . Errorf ( " \n " , err ) } return } }
OffButtonCloseListener waits for the off button to close the listener
OffButtonCloseListener waits for the off button to close the listener