mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
[qa] mininode: fail on send_message instead of silent return
This commit is contained in:
parent
66db2d62d5
commit
facb6c0bf8
@ -1315,7 +1315,7 @@ class NodeConn(asyncore.dispatcher):
|
||||
|
||||
def send_message(self, message, pushbuf=False):
|
||||
if self.state != "connected" and not pushbuf:
|
||||
return
|
||||
raise IOError('Not connected, no pushbuf')
|
||||
self.show_debug_msg("Send %s" % repr(message))
|
||||
command = message.command
|
||||
data = message.serialize()
|
||||
|
Loading…
Reference in New Issue
Block a user