Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion erpc_python/erpc/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import struct
import socket
import threading
from socket import SHUT_RDWR

from .crc16 import Crc16
from .client import RequestError
import time
Expand Down Expand Up @@ -166,7 +168,9 @@ def _serve(self):
self._serverSockEventStart.set()

def close(self):
self._serverSockEventStart.clear()
if self._isServer:
self._serverSockEventStart.clear()
self._sock.shutdown(SHUT_RDWR)
self._sock.close()
self._sock = None

Expand Down