Skip to content

Commit b02ff65

Browse files
committed
Adjust the call sequence
1 parent 203b7e8 commit b02ff65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiling/hw/connectivity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def connect(self, device):
8484

8585
@staticmethod
8686
def device_handler(func):
87-
def wrapper(self):
88-
func(self)
89-
87+
def wrapper(self):
9088
if self.device_list and self.can_recv():
9189
data = self.recv(numb=1)
9290
for device in self.device_list:
9391
device.send(data)
92+
93+
func(self)
9494

9595
return wrapper

0 commit comments

Comments
 (0)