Skip to content

Commit 2879f61

Browse files
committed
Fix raise the timeout close code as an int
1 parent d7084f8 commit 2879f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saltyrtc/server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def handler(self):
213213
client.log.info('Closing because of a ping timeout')
214214
close_future = client.close(CloseCode.timeout)
215215
self._server.raise_event(
216-
Event.disconnected, hex_path, CloseCode.timeout)
216+
Event.disconnected, hex_path, CloseCode.timeout.value)
217217
except SlotsFullError as exc:
218218
client.log.notice('Closing because all path slots are full: {}', exc)
219219
close_future = client.close(code=CloseCode.path_full_error.value)

0 commit comments

Comments
 (0)