-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil pointer dereference in socket server close method
- Added nil check for s.engine before calling Close() to prevent runtime panic - Resolved issue where a nil pointer dereference occurred when closing the socket server - This fixes the error: "runtime error: invalid memory address or nil pointer dereference"
- Loading branch information
1 parent
a8d73f2
commit 78dd636
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters